Advertisement
by Trotterdam » Fri Aug 24, 2018 9:49 am
by August » Fri Aug 24, 2018 10:14 am
by Trotterdam » Fri Aug 24, 2018 11:19 am
by The Northern Light » Sat Aug 25, 2018 2:39 pm
HMS Unicorn wrote:HMS Unicorn wrote:Personally I'd like to see the SPDR census included [edit: in the daily nation dump]. The reason for this is that I often have to process region-wide SPDR rankings in large regions (TNP, other GCRs, Europeia). Doing so currently requires a very large number of API calls to fetch all of the regional census=65 rankings and values. Having this information available in the nation dumps would make this process much easier and less bandwidth-intensive.
Would it be possible to revisit this suggestion?
It was brought up here, and several players mentioned they would benefit from the addition. But the discussion soon digressed to including LASTUPDATE in the dumps.
It'd save me a few dozens of thousands of API calls per day, and I imagine it's the same for many other players.
Home of the WADP, Planet Eras, and the Constibillocode!
by Jack Dredd » Sun Sep 02, 2018 7:29 am
by Trotterdam » Sun Sep 02, 2018 7:39 am
I'm pretty sure the telegram ratelimit is per player, not per region, so I don't see how that would help.Jack Dredd wrote:Not sure if this is the right thread, but would it be within the NS TOS to create multiple regions and use their API's to recruit, and then send those nations to one central region?
by Frisbeeteria » Sun Sep 02, 2018 9:20 am
Trotterdam wrote:I'm pretty sure the telegram ratelimit is per player, not per region, so I don't see how that would help.Jack Dredd wrote:Not sure if this is the right thread, but would it be within the NS TOS to create multiple regions and use their API's to recruit, and then send those nations to one central region?
by Jadis and Marthburg » Fri Sep 07, 2018 12:37 pm
by Frisbeeteria » Fri Sep 07, 2018 1:57 pm
Jadis and Marthburg wrote:How can i know that my API is being sended?
by Jadis and Marthburg » Fri Sep 07, 2018 2:26 pm
Frisbeeteria wrote:Jadis and Marthburg wrote:How can i know that my API is being sended?
At the bottom of your Sent recruitment telegram is a link to Recruitment & Delivery Reports. (Note that the link in this post is generic and won't work - click it in the body of the telegram.)
Your new Recruitment telegram hasn't gone to anyone yet. The one from two days ago has hit 14 nations, though I hope you stopped it because it's not a very good mass telegram. Since I have no idea what sort of script you're using (not that mods can debug scripts), that's all I can tell you.
by Frisbeeteria » Fri Sep 07, 2018 4:24 pm
Jadis and Marthburg wrote:I'm using nstg-web, are there any problems?
by Pax Cybertronian » Sun Sep 16, 2018 9:37 am
by Trotterdam » Sun Sep 16, 2018 11:40 am
It rather depends on which software you're using to access the URL. Without knowing more about what programming environment you're using, we can't really give a useful answer to this. And for that matter, the documentation for whatever tool you're using will probably be more helpful than this forum.Pax Cybertronian wrote:Hi, I'm trying to set my UserAgent so I can start up a recruitment campaign for my region, but I don't know how to create one. How do you set up a UserAgent?
User agents are separate from API keys, so that probably won't be a problem. The important thing is that the user agent needs to be something that can be used to contact you, so if your contact information changes, it makes sense to change your user agent with it.Pax Cybertronian wrote:Also, would I have to cancel my recruitment campaign if I wanted to change my UserAgent in the future? Any help would be appreciated.
by Frisbeeteria » Sun Sep 16, 2018 12:22 pm
Pax Cybertronian wrote:I'm trying to set my UserAgent so I can start up a recruitment campaign for my region, but I don't know how to create one.
by Imperium Anglorum » Tue Sep 18, 2018 12:49 pm
by The Northern Light » Sat Sep 22, 2018 7:45 pm
[violet] wrote:I've added the below. These are experimental and undocumented at the moment; please don't smash them with requests, and please provide feedback.
Additions to Region API:
"mostposts" for most frequent posters
"mostliked" for most liked
"mostlikes" for most likes given to other posts
These all take the following optional parameters:
"limit" to specify a maximum number of results
"from" to specify a starting time (in epoch format)
"to" to specify an ending time (in epoch format)
Example: Most liked posts in Testregionia since the start of this month PDT:
https://www.nationstates.net/cgi-bin/ap ... 0;limit=25
Home of the WADP, Planet Eras, and the Constibillocode!
by Flanderlion » Sun Sep 23, 2018 4:45 am
The Northern Light wrote:[violet] wrote:I've added the below. These are experimental and undocumented at the moment; please don't smash them with requests, and please provide feedback.
Additions to Region API:
"mostposts" for most frequent posters
"mostliked" for most liked
"mostlikes" for most likes given to other posts
These all take the following optional parameters:
"limit" to specify a maximum number of results
"from" to specify a starting time (in epoch format)
"to" to specify an ending time (in epoch format)
Example: Most liked posts in Testregionia since the start of this month PDT:
https://www.nationstates.net/cgi-bin/ap ... 0;limit=25
Hi,
I am using these API calls. However, the information I am getting for the "mostliked" category doesn't seem to be correct. For instance, this is a call for "mostliked", between August 22nd andSeptember 22nd 2018, in The North Pacific's RMB:
https://www.nationstates.net/cgi-bin/ap ... 537588800;
This reports that RMB posts by The Northern Light received only 3 likes. But if I look at my nation's notices, in the past 12 days only I already see at least 23 likes.
Is it possible that the descriptions of "mostliked" and "mostlikes" should be reversed? "Mostlikes" for my nation in the same period as above is 116, which seems more plausible.
EDIT - Update:
I did some testing of my own, and it looks like what I suggested above is indeed the case. The correct description for the results of these API calls should be:
"mostliked" for most likes given by this nation to other nations' posts
"mostlikes" for most likes received by this nation's posts
by Fecaw » Fri Oct 05, 2018 10:01 am
by The Northern Light » Sat Oct 06, 2018 12:54 pm
Home of the WADP, Planet Eras, and the Constibillocode!
by August » Fri Oct 19, 2018 9:28 am
I was under the impression that the ratelimit for API recruitment was per player and per region (ie, no more than one telegram every three minutes from a particular sender for all regions combined and for a particular region from all senders combined). If it is only the latter, I am happy to be wrong.Frisbeeteria wrote:Trotterdam wrote:I'm pretty sure the telegram ratelimit is per player, not per region, so I don't see how that would help.
Nope, the ratelimit is per region specifically to prevent this sort of abuse.
As for using "gateway" regions, it's a gray area that can't really be coded. We certainly don't condone it, as anything that is specifically designed to subvert the intent of the rules is unethical at best. Don't do it.
by Eluvatar » Fri Oct 19, 2018 12:36 pm
by The Northern Light » Sat Oct 20, 2018 2:25 pm
Home of the WADP, Planet Eras, and the Constibillocode!
by Eluvatar » Mon Oct 29, 2018 6:56 am
by Trotterdam » Mon Oct 29, 2018 2:36 pm
Are you sure? For ZACTION, inactive nations have the empty string rather than "none".Eluvatar wrote:During this Z-day, there will be a new field in the zombies shard: some nations will have a ZACTIONINTENDED field, which will reflect the ZACTION they had before a horde forcibly changed their ZACTION to export. (If they had no ZACTION, ZACTIONINTENDED will be "none").
by Eluvatar » Tue Oct 30, 2018 6:35 am
Trotterdam wrote:Are you sure? For ZACTION, inactive nations have the empty string rather than "none".Eluvatar wrote:During this Z-day, there will be a new field in the zombies shard: some nations will have a ZACTIONINTENDED field, which will reflect the ZACTION they had before a horde forcibly changed their ZACTION to export. (If they had no ZACTION, ZACTIONINTENDED will be "none").
I just tried testing it, and ZACTIONINTENDED appears to not appear on current nations. Does it only show up when a nation is actually infected? I think it'd be better easier to work with if it were always reported, being identical to ZACTION if a nation hasn't been forcibly changed. Right now I can't see it in action to see how I should parse it.
Advertisement
Users browsing this forum: Concordare, IC-Water, Regmotto, Riemstagrad, The Democratic States of Scandinavia, Zapadoslavica
Advertisement