NATION

PASSWORD

New TG system: Q&A Thread

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
Sanctaria
Powerbroker
 
Posts: 7922
Founded: Sep 12, 2008
Inoffensive Centrist Democracy

Postby Sanctaria » Sat Feb 02, 2013 9:26 pm

[violet] wrote:
Omigodtheykilledkenny wrote:Except that it increases the likelihood of illegal proposals getting to quorum. I think perhaps you should check in with the WA mods as well, before you rush into this. Neglecting to do so has reaped disastrous results in the past...

Oh, believe me, I don't touch the WA any more without sign-off from a small army of mods and stakeholders. This is what I mean by "requires a proper discussion."

Good to hear, because I don't like Quelesh's suggestion, as beneficial as it may be to us authors.
Divine Federation of Sanctaria

Ideological Bulwark #258

Dr. Bethany Greer CMD, Sanctarian Ambassador to the World Assembly
Author of:
GA#109 GA#133 GA#176 GA#201 GA#222 GA#297
GA#590 (Co)
Frisbeeteria wrote:Do people not realize that moderators can tell when someone is wanking?

Luna Amore wrote:Sanc is always watching. Ever vigilant.

Auralia wrote:Your condescending attitude is remarkably annoying.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sat Feb 02, 2013 9:56 pm

Auralia wrote:
[violet] wrote:It'll probably be late in the week. I don't want to change docs until their instructions will actually work, and the Mass TG stuff is going to be the last part to come online.


Could you post a draft version in a separate place for now (don't replace the existing API docs), just so we developers can get ready? :)


Sending telegrams via the API

  1. Compose your telegram, addressing it to "tag:api". You may wish to make use of the %NATION% macro, which auto-expands into the name of each recipient.
  2. Click SEND.
  3. Your telegram will be registered as a template, and you will be shown instructions on how to deliver it. This involves noting two pieces of information: its TGID and its secret key. You can then use these to make API calls to:

    Code: Select all
    http://www.nationstates.net/cgi-bin/api.cgi?a=sendTG&to=(nation_name)&tgid=(TGID)&key=(secret key)

User avatar
Auralia
Senator
 
Posts: 4982
Founded: Dec 15, 2011
Ex-Nation

Postby Auralia » Sat Feb 02, 2013 10:01 pm

[violet] wrote:
Auralia wrote:
Could you post a draft version in a separate place for now (don't replace the existing API docs), just so we developers can get ready? :)


Sending telegrams via the API

  1. Compose your telegram, addressing it to "tag:api". You may wish to make use of the %NATION% macro, which auto-expands into the name of each recipient.
  2. Click SEND.
  3. Your telegram will be registered as a template, and you will be shown instructions on how to deliver it. This involves noting two pieces of information: its TGID and its secret key. You can then use these to make API calls to:

    Code: Select all
    http://www.nationstates.net/cgi-bin/api.cgi?a=sendTG&to=(nation_name)&tgid=(TGID)&key=(secret key)


How do you address a telegram to "tag:api"? For how long do templates remain valid? What do you mean when you say that we "will be shown instructions on how to deliver it"?
Catholic Commonwealth of Auralia
"Amor sequitur cognitionem."

User avatar
Cerberion
Diplomat
 
Posts: 993
Founded: Apr 22, 2010
Corporate Police State

Postby Cerberion » Sat Feb 02, 2013 10:05 pm

[violet] wrote:
Auralia wrote:
Could you post a draft version in a separate place for now (don't replace the existing API docs), just so we developers can get ready? :)


Sending telegrams via the API

  1. Compose your telegram, addressing it to "tag:api". You may wish to make use of the %NATION% macro, which auto-expands into the name of each recipient.
  2. Click SEND.
  3. Your telegram will be registered as a template, and you will be shown instructions on how to deliver it. This involves noting two pieces of information: its TGID and its secret key. You can then use these to make API calls to:

    Code: Select all
    http://www.nationstates.net/cgi-bin/api.cgi?a=sendTG&to=(nation_name)&tgid=(TGID)&key=(secret key)


Okay, gbut if it's a recruitment TG how does the API get notified of this?

I can see a lot of good reasons to push stuff through the API, from forum integration as well as regional announcements. Some might be considered bulk, but others might be highly important and need to be treated ike a direct TG.

Shouldn't there either be an additional variable to identify the type of message?

User avatar
Lazzarania
Spokesperson
 
Posts: 113
Founded: Aug 18, 2011
Ex-Nation

Postby Lazzarania » Sat Feb 02, 2013 10:06 pm

Tramiar wrote:
Kingdom of Phoenixia wrote:
Lazzarania: No... I feel like you're just trying to argue. So unless you actually figure out what I'm talking about and come up with an argument that's even talking about the same things as me, I'm probably not going to bother with your "replies".


I don't care what you "feel"? I could just as easily say, "I feel you are being obtuse, so please go right ahead and cease bothering with me, as it suits me just fine." And, the "other" possibility is that you don't have the foggiest about what I'm talking about.
Last edited by Lazzarania on Sat Feb 02, 2013 10:09 pm, edited 1 time in total.

User avatar
The Ben Boys
Senator
 
Posts: 4286
Founded: Apr 16, 2009
Ex-Nation

Postby The Ben Boys » Sat Feb 02, 2013 10:07 pm

Individuality-ness wrote:
The Ben Boys wrote:I totally agree, I was merely saying that it should be the next major update or improvement. Now that we actually have a method in which to pay the site, I'm probably going to set up a PayPal for the first time ever.

You don't need to actually, it'll take it directly last I heard.

And I don't think they'd be able to make it free, since saving each theme takes up space on the server. We have over 100k nations in the game at any given point in time, if say maybe 5% use the custom themes, that's still 5000 nations worth of custom themes.


And? I'm referring to the box at the top, which should still have parameters similar to the thousands of custom flags (a bit larger, of course).


"Both Religion and science require a belief in God. For believers, God is in the beginning, and for physicists He is at the end of all considerations"-Max Planck

Packers Nation

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Sat Feb 02, 2013 10:10 pm

Auralia wrote:How do you address a telegram to "tag:api"? For how long do templates remain valid? What do you mean when you say that we "will be shown instructions on how to deliver it"?

Y'know, if you waited until the TG system was actually delivered, the answers would almost certainly be obvious.

User avatar
Individuality-ness
Post Czar
 
Posts: 37712
Founded: Mar 02, 2011
Ex-Nation

Postby Individuality-ness » Sat Feb 02, 2013 10:11 pm

The Ben Boys wrote:
Individuality-ness wrote:You don't need to actually, it'll take it directly last I heard.

And I don't think they'd be able to make it free, since saving each theme takes up space on the server. We have over 100k nations in the game at any given point in time, if say maybe 5% use the custom themes, that's still 5000 nations worth of custom themes.

And? I'm referring to the box at the top, which should still have parameters similar to the thousands of custom flags (a bit larger, of course).

I'm not sure whether that's really negotiable, flags are like avatars and they can be changed easily, but the headers are part of the stylesheet of the theme, and if you let them mess with the stylesheet with the header, then you'd have to do the same for everything else, which brings us back to the beginning.
"I should have listened to her, so hard to keep control. We kept on eating but our bloated bellies still not full."
Poetry Thread | How to Not Rape | Aspergers v. Assburgers | You Might be an Altie If... | Factbook/Extension

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sat Feb 02, 2013 10:15 pm

Frisbeeteria wrote:
Auralia wrote:How do you address a telegram to "tag:api"? For how long do templates remain valid? What do you mean when you say that we "will be shown instructions on how to deliver it"?

Y'know, if you waited until the TG system was actually delivered, the answers would almost certainly be obvious.

This is true: There's a limit to how well I can describe what you're about to see, and you're going to see it soon enough anyway. You will have time to prepare; the bulk of the new TG system will come online first, without Mass TGs or the API.

Templates remain valid forever.

User avatar
Auralia
Senator
 
Posts: 4982
Founded: Dec 15, 2011
Ex-Nation

Postby Auralia » Sat Feb 02, 2013 10:21 pm

[violet] wrote:Templates remain valid forever.


Really! That's really interesting. You're not concerned about storage space?
Catholic Commonwealth of Auralia
"Amor sequitur cognitionem."

User avatar
Tramiar
Ambassador
 
Posts: 1162
Founded: Aug 30, 2005
Ex-Nation

Postby Tramiar » Sat Feb 02, 2013 10:25 pm

Lazzarania wrote:
Tramiar wrote:


I don't care what you "feel"? I could just as easily say, "I feel you are being obtuse, so please go right ahead and cease bothering with me, as it suits me just fine." And, the "other" possibility is that you don't have the foggiest about what I'm talking about.

Except from your posts, I'm judging we're on the same side, yet you continue trying to argue with me. Which means this is pointless. At any rate, this conversation isn't helping what this thread is about.


When you say we're going to have this new system in "a few days", does that mean like 3, or more like a week and a half?
Mallorea and Riva wrote:I too would ban myself if I saw me moving into my region.

Tramiar: *causes great injustices to natives and fenda-kind*
Spartzy: *prevents great injustices*
Tramiar: too late, they were already caused.
Spartzy: *stops great injustices*
Tramiar: *causes greater injustices, cannot be fixed until next update*
Spartzy: *quits the game*

User avatar
Lazzarania
Spokesperson
 
Posts: 113
Founded: Aug 18, 2011
Ex-Nation

Postby Lazzarania » Sat Feb 02, 2013 10:35 pm

Tramiar wrote:
Lazzarania wrote:
I don't care what you "feel"? I could just as easily say, "I feel you are being obtuse, so please go right ahead and cease bothering with me, as it suits me just fine." And, the "other" possibility is that you don't have the foggiest about what I'm talking about.

Except from your posts, I'm judging we're on the same side, yet you continue trying to argue with me. Which means this is pointless. At any rate, this conversation isn't helping what this thread is about.


I'm happy that you finally noticed that I made the mistake of confusing Tim-Opolis for Afforess. My original post makes no sense if I were agreeing with Afforess. So, let's celebrate the fact that both of us agree on the basics. ;)
Last edited by Lazzarania on Sat Feb 02, 2013 10:36 pm, edited 1 time in total.

User avatar
Todd McCloud
Senator
 
Posts: 4088
Founded: Oct 11, 2006
Left-Leaning College State

Postby Todd McCloud » Sat Feb 02, 2013 11:27 pm

So I finally spotted this feature (coming soon) that will allow the ability for myself to send a mass-TG to my region. All I could think of was this (warning: has images):

Image Image Image


But seriously, and I apologize if this has already been asked, but does this feature apply to everyone in the region? Like, say I was disgruntled and had no power in the region, but a lot of cash to purchase stamps, could I send out mass TG after mass TG telling everyone the delegate was a dork?
"Your uniform doesn't seem to fit. You're much too alive in it."

"You must be the change you want to see in the world" - Gandhi
"The worst prison would be a closed heart." - Pope John Paul II

User avatar
Great Nepal
Postmaster of the Fleet
 
Posts: 28677
Founded: Jan 11, 2010
Ex-Nation

Postby Great Nepal » Sun Feb 03, 2013 2:04 am

Auralia wrote:
[violet] wrote:Templates remain valid forever.


Really! That's really interesting. You're not concerned about storage space?

Well, I think storing hundreds of identical recruitment tg's is more demanding on storage than one copy of recruitment tg. Atleast unless someone wants to crash NS...
Last edited by Great Nepal on Sun Nov 29, 1995 7:02 am, edited 1 time in total.


User avatar
Jormengand
Powerbroker
 
Posts: 8414
Founded: May 22, 2010
Ex-Nation

Postby Jormengand » Sun Feb 03, 2013 3:21 am

Todd McCloud wrote:So I finally spotted this feature (coming soon) that will allow the ability for myself to send a mass-TG to my region. All I could think of was this (warning: has images):



But seriously, and I apologize if this has already been asked, but does this feature apply to everyone in the region? Like, say I was disgruntled and had no power in the region, but a lot of cash to purchase stamps, could I send out mass TG after mass TG telling everyone the delegate was a dork?

Yes; the fact that the mods might not like you much for it is another matter.
Jormengand wrote:It would be really meta if I sigged this.

User avatar
Torisakia
Post Marshal
 
Posts: 16943
Founded: Jun 04, 2011
Civil Rights Lovefest

Postby Torisakia » Sun Feb 03, 2013 3:58 am

Just a question, will we be able to opt out of receiving TGs entirely? Because most of the ones I get don't even have anything nice to say.
You ever woke up one morning and just decided it wasn't one of those days and you were gonna break some stuff?
President: Doug McDowell
Population: 227 million
Tech: MT-PMT
I don't use most NS stats
Ideology: Democracy Manifest
Pro: truth
Anti: bullshit


Latest Headlines
[TNN] A cargo ship belonging to Torisakia disappeared off the coast of Kostane late Wednesday evening. TBI suspects foul play. || Congress passes a T$10 billion aid package for the Democratic Populist rebels in Kostane. To include firearms, vehicles, and artillery.

User avatar
Jormengand
Powerbroker
 
Posts: 8414
Founded: May 22, 2010
Ex-Nation

Postby Jormengand » Sun Feb 03, 2013 4:04 am

Torisakia wrote:Just a question, will we be able to opt out of receiving TGs entirely? Because most of the ones I get don't even have anything nice to say.

From what's already been said, you can opt out of every category of TGs, and all untyped mass TGs. I think that the only ones you can't opt out of are untyped non-mass ones.
Jormengand wrote:It would be really meta if I sigged this.

User avatar
Torisakia
Post Marshal
 
Posts: 16943
Founded: Jun 04, 2011
Civil Rights Lovefest

Postby Torisakia » Sun Feb 03, 2013 4:11 am

Jormengand wrote:
Torisakia wrote:Just a question, will we be able to opt out of receiving TGs entirely? Because most of the ones I get don't even have anything nice to say.

From what's already been said, you can opt out of every category of TGs, and all untyped mass TGs. I think that the only ones you can't opt out of are untyped non-mass ones.

Ok. Because the only TGs I get(mostly during football season) are about how much of an "asshole" I am. So unless it's an untyped non-mass TG, I won't receive it. :p
You ever woke up one morning and just decided it wasn't one of those days and you were gonna break some stuff?
President: Doug McDowell
Population: 227 million
Tech: MT-PMT
I don't use most NS stats
Ideology: Democracy Manifest
Pro: truth
Anti: bullshit


Latest Headlines
[TNN] A cargo ship belonging to Torisakia disappeared off the coast of Kostane late Wednesday evening. TBI suspects foul play. || Congress passes a T$10 billion aid package for the Democratic Populist rebels in Kostane. To include firearms, vehicles, and artillery.

User avatar
Jormengand
Powerbroker
 
Posts: 8414
Founded: May 22, 2010
Ex-Nation

Postby Jormengand » Sun Feb 03, 2013 4:12 am

Torisakia wrote:
Jormengand wrote:From what's already been said, you can opt out of every category of TGs, and all untyped mass TGs. I think that the only ones you can't opt out of are untyped non-mass ones.

Ok. Because the only TGs I get(mostly during football season) are about how much of an "asshole" I am. So unless it's an untyped non-mass TG, I won't receive it. :p

...

Unfortunately, that's going to be the most likely category (or lack thereof). Why not send GHRs if it's getting bad?
Jormengand wrote:It would be really meta if I sigged this.

User avatar
Torisakia
Post Marshal
 
Posts: 16943
Founded: Jun 04, 2011
Civil Rights Lovefest

Postby Torisakia » Sun Feb 03, 2013 4:18 am

Jormengand wrote:
Torisakia wrote:Ok. Because the only TGs I get(mostly during football season) are about how much of an "asshole" I am. So unless it's an untyped non-mass TG, I won't receive it. :p

...

Unfortunately, that's going to be the most likely category (or lack thereof). Why not send GHRs if it's getting bad?

Nah. I usually delete them. I did report one once, but I got in trouble because the mods thought that I "provoked" them into sending it.
You ever woke up one morning and just decided it wasn't one of those days and you were gonna break some stuff?
President: Doug McDowell
Population: 227 million
Tech: MT-PMT
I don't use most NS stats
Ideology: Democracy Manifest
Pro: truth
Anti: bullshit


Latest Headlines
[TNN] A cargo ship belonging to Torisakia disappeared off the coast of Kostane late Wednesday evening. TBI suspects foul play. || Congress passes a T$10 billion aid package for the Democratic Populist rebels in Kostane. To include firearms, vehicles, and artillery.

User avatar
Laevendell
Envoy
 
Posts: 220
Founded: Jan 29, 2011
Left-wing Utopia

Postby Laevendell » Sun Feb 03, 2013 5:07 am

Are there any plans on the API to handle some kind of login access to telegrams, apart from using telegrams templates, but working in a similar fashion? I know implementing OAuth is a hassle, but what if a nation could go to a certain page when logged in on the site (the Settings page or something logical) and generate a secret key.

This key could then be used in API calls to identify the nation and perform some actions, like sending a telegram to one nation as if it was sent on the site or fetching your inbox (perhaps with an offset, if it would be too much for the server to parse out many at once).
A user could then optionally use this key in external applications to access these functionalities and they should be able to regenerate (and perhaps turn off) the secret key, if they think it might be compromised.

If this (or similar solutions) won't work or can't be implemented at this time, is it still fine for an external application to log in to the site, fetch telegrams and send from there (not automatically, but responding to user input)?

User avatar
Treznor
Negotiator
 
Posts: 7343
Founded: Antiquity
Democratic Socialists

Postby Treznor » Sun Feb 03, 2013 7:55 am

I apologize for re-posting it, but the discussion appears to have moved past my comment and I'd really like to see a response to this:

[violet] wrote:
Tim-Opolis wrote:Plus, will there then be offenses for not clicking a "Recruitment Telegram" button? What if I forget or think I click it and it doesn't register. Will I then get a Warning on my nation for such a trivial thing?

The system pops up a warning if you attempt to send a Mass TG (i.e. a telegram that's going out to more than just one nation) that's not a recruitment or campaign TG, just to make sure. So hopefully no-one does this by accident. But to answer the question: Yes, it will definitely be an offense to send a recruitment TG without marking it as such. We won't be draconian about this while everyone's getting used to it, but it will be a violation of the spam rules.

Well, I see that I'll be looking forward to having my inbox inundated with spam until you crack down on this. People don't read the rules as they are now; this will just make it easier for them to make a mistake.

Proposal: make recruitment "opt-in" until the trial period has expired, then flip it to "opt-out." People who frequently appear in the top rankings are among the top targets for recruitment spam because of newbies who can't be bothered to read the rules.

User avatar
Atmos
Attaché
 
Posts: 73
Founded: Oct 17, 2012
Ex-Nation

Postby Atmos » Sun Feb 03, 2013 9:22 am

[violet] wrote:
Atmos wrote:Suggestion: Perhaps the enabling of the [img] tag in TG's could be added to one of the two Postmaster features?

I think that's edging into dangerous territory, since recruitment messages with images would be far more arresting than text ones, and it would therefore make a paid account pretty much essential for any recruiter. That's not something we want to do.


I appreciate the response, and you're likely right. At the risk of being Captain Obvious... If that's the only thing holding you back, perhaps the tag could be enabled for all nations, as part of the new TG system. But I'm sure that's something you've considered already.

Either way, well done. I'm looking forward to the documented API, as it sounds like it's coming along nicely! :)
I'm Ouroboros, and I approved this message.
Sixth Guardian of
GIRO
Brought to you and paid for by the Creative Think Tank of Atmos.
Chief Editor of the Global News Network [GNN]

User avatar
Jormengand
Powerbroker
 
Posts: 8414
Founded: May 22, 2010
Ex-Nation

Postby Jormengand » Sun Feb 03, 2013 10:00 am

Atmos wrote:
[violet] wrote:I think that's edging into dangerous territory, since recruitment messages with images would be far more arresting than text ones, and it would therefore make a paid account pretty much essential for any recruiter. That's not something we want to do.


I appreciate the response, and you're likely right. At the risk of being Captain Obvious... If that's the only thing holding you back, perhaps the tag could be enabled for all nations, as part of the new TG system. But I'm sure that's something you've considered already.

Either way, well done. I'm looking forward to the documented API, as it sounds like it's coming along nicely! :)


Images take space. Space takes time. People don't want to spend time waiting for their TG box to open each time.
Jormengand wrote:It would be really meta if I sigged this.

User avatar
Buddyland
Lobbyist
 
Posts: 16
Founded: Jun 19, 2012
Ex-Nation

Postby Buddyland » Sun Feb 03, 2013 11:36 am

Will we be allowed to transfer telegram stamps between nations?

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Caffeinated, FlyLands, Ganges Empire, Merethin, Ousana, Rushkaville, San Pellegrino Romana, Suvarnavarta, The Kingdom of Iceland, The Southern Dependencies

Advertisement

Remove ads