Advertisement
by New Rogernomics » Mon Sep 02, 2019 9:31 am
by Phydios » Mon Sep 02, 2019 10:06 am
New Rogernomics wrote:Hey there, I have a two part question, if this is the right place to ask this.
I have been learning more about how the Nationstates Telegram API is implemented, and I have a question concerning this.
If a nation is a founder in a UCR, or the delegate of a GCR, and they allow nation X to get the API key for recruiting, and nation X CTEs, does that only API key become open to nation Y to acquire the key?
If you claim to be religious but don’t control your tongue, you are fooling yourself, and your religion is worthless. Pure and genuine religion in the sight of God the Father means caring for orphans and widows in their distress and refusing to let the world corrupt you. | Not everyone who calls out to me, ‘Lord! Lord!’ will enter the Kingdom of Heaven. Only those who actually do the will of my Father in heaven will enter. On judgment day many will say to me, ‘Lord! Lord! We prophesied in your name and cast out demons in your name and performed many miracles in your name.’ But I will reply, ‘I never knew you. Get away from me, you who break God’s laws.’James 1:26-27, Matthew 7:21-23
by New Rogernomics » Mon Sep 02, 2019 4:40 pm
That is not correct apparently. There is only one key per region. If you don't know the key or have access to it, then no other nation can use it. A good example would be where a regional officer nation or a founder acquires the key, and then CTEs.Phydios wrote:New Rogernomics wrote:Hey there, I have a two part question, if this is the right place to ask this.
I have been learning more about how the Nationstates Telegram API is implemented, and I have a question concerning this.
If a nation is a founder in a UCR, or the delegate of a GCR, and they allow nation X to get the API key for recruiting, and nation X CTEs, does that only API key become open to nation Y to acquire the key?
API keys are issued per region, so they aren't locked to a specific nation. Nation Y can use the key any time that no one else is using it.
by Frisbeeteria » Mon Sep 02, 2019 5:18 pm
Phydios wrote:API keys are issued per region, so they aren't locked to a specific nation. Nation Y can use the key any time that no one else is using it.
New Rogernomics wrote:A good example would be where a regional officer nation or a founder acquires the key, and then CTEs.
New Rogernomics wrote: does that only API key become open to nation Y to acquire the key?
by New Rogernomics » Mon Sep 02, 2019 7:09 pm
by Phydios » Mon Sep 02, 2019 8:43 pm
Frisbeeteria wrote:Phydios wrote:API keys are issued per region, so they aren't locked to a specific nation. Nation Y can use the key any time that no one else is using it.
There's a lot wrong with this statement. Keys are tied to a region, but a single nation is considered 'responsible' for it. If another nation misuses the key, the responsible nation could get a warning. Sharing a key requires a fair bit of trust.
Also, "any time that no one else is using it" is misleading. Multiple nations can use the same key simultaneously - it's just pointless. The rate limit applies to the key rather than the nation, so every recruiter after the first will probably bounce 100% of their attempts.New Rogernomics wrote:A good example would be where a regional officer nation or a founder acquires the key, and then CTEs.
In such cases, a Getting Help Request can get the old key deactivated and a new key issued. Same if the old recruiter nation moved to a new region. Unfortunately, it's not the same for living-but-inactive recruiter nations. We won't reissue the key if the nation is alive and still in the region.New Rogernomics wrote: does that only API key become open to nation Y to acquire the key?
We'd issue a different key, cancelling the old one.
If you claim to be religious but don’t control your tongue, you are fooling yourself, and your religion is worthless. Pure and genuine religion in the sight of God the Father means caring for orphans and widows in their distress and refusing to let the world corrupt you. | Not everyone who calls out to me, ‘Lord! Lord!’ will enter the Kingdom of Heaven. Only those who actually do the will of my Father in heaven will enter. On judgment day many will say to me, ‘Lord! Lord! We prophesied in your name and cast out demons in your name and performed many miracles in your name.’ But I will reply, ‘I never knew you. Get away from me, you who break God’s laws.’James 1:26-27, Matthew 7:21-23
by Minoa » Thu Sep 26, 2019 6:59 am
by RantSpot » Thu Sep 26, 2019 12:15 pm
by Minoa » Fri Sep 27, 2019 4:53 am
by Flanderlion » Sun Nov 03, 2019 3:58 am
Darcania wrote:Could it be made possible to have a private nation API shard to apply to (not join, just apply to) the World Assembly?
by Valentine Z » Fri Nov 22, 2019 4:56 am
♪ If you are reading my sig, I want you to have the best day ever ! You are worth it, do not let anyone get you down ! ♪
Glory to De Geweldige Sierlijke Katachtige Utopia en Zijne Autonome Machten ov Valentine Z !
(✿◠‿◠) ☆ \(^_^)/ ☆
♡ Issues Thread ♡ Photography Stuff ♡ Project: Save F7. ♡ Stats Analysis ♡
♡ The Sixty! ♡ Valentian Stories! ♡ Gwen's Adventures! ♡
• Never trouble trouble until trouble troubles you.
• World Map is a cat playing with Australia.
by Trotterdam » Fri Nov 22, 2019 9:40 am
Wow, it's possible to track people's lifespans to an accuracy of three microseconds?Valentine Z wrote:However... https://www.nationstates.net/cgi-bin/api.cgi?nation=valentine_z&q=hdi, whereby q=hdi is not mentioned in the public shard section, gives precise HDI values, to several decimal places.
by Valentine Z » Fri Nov 22, 2019 11:43 am
Trotterdam wrote:Wow, it's possible to track people's lifespans to an accuracy of three microseconds?Valentine Z wrote:However... https://www.nationstates.net/cgi-bin/api.cgi?nation=valentine_z&q=hdi, whereby q=hdi is not mentioned in the public shard section, gives precise HDI values, to several decimal places.
♪ If you are reading my sig, I want you to have the best day ever ! You are worth it, do not let anyone get you down ! ♪
Glory to De Geweldige Sierlijke Katachtige Utopia en Zijne Autonome Machten ov Valentine Z !
(✿◠‿◠) ☆ \(^_^)/ ☆
♡ Issues Thread ♡ Photography Stuff ♡ Project: Save F7. ♡ Stats Analysis ♡
♡ The Sixty! ♡ Valentian Stories! ♡ Gwen's Adventures! ♡
• Never trouble trouble until trouble troubles you.
• World Map is a cat playing with Australia.
by The Order of the Holy Inquisitors » Fri Nov 22, 2019 4:57 pm
by Trotterdam » Fri Nov 22, 2019 7:36 pm
Yes, setting a user agent is still mandatory.The Order of the Holy Inquisitors wrote:Hi there! I'm currently trying my hand at some basic data retrieval stuff using a wrapper for the API (was bored and thus looking for a challenge), and I noticed that on the Wrapper documentation page (here), it states I must "set a user agent." If I'm using a wrapper, is this step still mandatory, and if so, could you please direct me as to how exactly I should go about doing that?
by The Order of the Holy Inquisitors » Fri Nov 22, 2019 10:37 pm
Trotterdam wrote:Yes, setting a user agent is still mandatory.The Order of the Holy Inquisitors wrote:Hi there! I'm currently trying my hand at some basic data retrieval stuff using a wrapper for the API (was bored and thus looking for a challenge), and I noticed that on the Wrapper documentation page (here), it states I must "set a user agent." If I'm using a wrapper, is this step still mandatory, and if so, could you please direct me as to how exactly I should go about doing that?
The way to do this should be specified in the documentation for whichever wrapper you're using. If you can't find it, it's probably best to contact the wrapper's author for help.
by Trotterdam » Sat Nov 23, 2019 12:17 am
For clarification on what constitutes a sufficiently-informative user agent you'll need to contact the actual game staff (for which this is the right thread, so just wait and hope for a response), since they're the only ones with the authority to make a ruling on that. The wrapper just determines how you set your user agent, not what you should set it to.The Order of the Holy Inquisitors wrote:Edit: I think I got it set properly (registers my nation site link as the value of the userAgent variable and logs to the console the name of the wrapper creator and me as a "user" of it. I think this is enough, but if I want to double check, would I just go to the author of the wrapper again?
by Frisbeeteria » Sat Nov 23, 2019 9:59 am
Trotterdam wrote:For clarification on what constitutes a sufficiently-informative user agent you'll need to contact the actual game staff
by The Order of the Holy Inquisitors » Sat Nov 23, 2019 4:48 pm
Trotterdam wrote:For clarification on what constitutes a sufficiently-informative user agent you'll need to contact the actual game staff (for which this is the right thread, so just wait and hope for a response), since they're the only ones with the authority to make a ruling on that. The wrapper just determines how you set your user agent, not what you should set it to.
I don't understand what you mean by "logs to the console", though. Unless I'm misunderstanding, what your program logs to your console shouldn't be relevant to anyone except yourself.
Frisbeeteria wrote:We want something that will let us get back to you if something goes wrong. Your main nation or email address are both acceptable. I'd personally go for 'blatantly obvious' and call mine "Frisbeeteria Recruitment Script".
by SherpDaWerp » Tue Dec 03, 2019 4:44 pm
by [violet] » Wed Dec 11, 2019 4:58 pm
by Flanderlion » Wed Dec 11, 2019 5:47 pm
[violet] wrote:There is now a Cards API in development. It's subject to change without warning, but is pretty functional already.
Documentation here:
https://www.nationstates.net/pages/api.html#cards
by Flanderlion » Thu Dec 12, 2019 3:49 am
Advertisement
Users browsing this forum: United States of Dictators
Advertisement