It was an implied request. Obviously, every new site feature deserves an API!
Advertisement
by Shadow Afforess » Fri Jan 24, 2014 8:06 pm
by Tlik » Sat Jan 25, 2014 1:19 am
by Shadow Afforess » Sat Jan 25, 2014 1:34 am
Tlik wrote:[violet] wrote:Did I promise one? Your grumpy face makes me think I agreed to do something, but I don't see a request in this thread...
You promise us things with your kindness and constant stream of improvements. You need to be harsher and more vicious! We mere players have no right to expect you to do things for us! I recommend withholding all new features for the next six months to teach us all a lesson...
by Liberal Sweedish and French Unity » Mon Jan 27, 2014 9:53 am
by Nephmir » Thu Feb 06, 2014 6:44 pm
GP References
Military Gameplay
Login Script
Manual Recruitment
The 300 Endorsements of Nephmir
"100 by land, 100 by air, 100 by sea."
Mercenary of The Sable Order
Commander in Project Soul
by Shadow Afforess » Thu Feb 06, 2014 7:08 pm
Nephmir wrote:I am trying to use an API template for my first time, for the purpose of recruiting for my region, but when I tried to send it, it said:
Client Not Registered For API
Error: 403 Client Not Registered For API
by Nephmir » Fri Feb 07, 2014 4:03 am
GP References
Military Gameplay
Login Script
Manual Recruitment
The 300 Endorsements of Nephmir
"100 by land, 100 by air, 100 by sea."
Mercenary of The Sable Order
Commander in Project Soul
by Nephmir » Fri Feb 07, 2014 6:49 am
GP References
Military Gameplay
Login Script
Manual Recruitment
The 300 Endorsements of Nephmir
"100 by land, 100 by air, 100 by sea."
Mercenary of The Sable Order
Commander in Project Soul
by The Black Hat Guy » Fri Feb 07, 2014 8:12 am
Nephmir wrote:I received the key, but it still says the same error when I try to send it.
by Nephmir » Fri Feb 07, 2014 4:29 pm
GP References
Military Gameplay
Login Script
Manual Recruitment
The 300 Endorsements of Nephmir
"100 by land, 100 by air, 100 by sea."
Mercenary of The Sable Order
Commander in Project Soul
by Shadow Afforess » Fri Feb 07, 2014 8:08 pm
Nephmir wrote:It wouldn't even let me get that far. I clicked the link below where it said "you can test this by sending one to yourself:", and it said I was unregistered.
by Nephmir » Sat Feb 08, 2014 4:29 am
Shadow Afforess wrote:Nephmir wrote:It wouldn't even let me get that far. I clicked the link below where it said "you can test this by sending one to yourself:", and it said I was unregistered.
That is just an example of the FORMAT of the url. You need to replace the query variables with the client key, telegram id, and secret id.
GP References
Military Gameplay
Login Script
Manual Recruitment
The 300 Endorsements of Nephmir
"100 by land, 100 by air, 100 by sea."
Mercenary of The Sable Order
Commander in Project Soul
by The Black Hat Guy » Sat Feb 08, 2014 7:32 am
by Shadow Afforess » Sat Feb 08, 2014 11:51 am
The Black Hat Guy wrote:Nephmir wrote:And put it in the url search bar?
If you don't know how to program, the only currently publicly released program to access the API is Auralia's, posted here in Technical. Otherwise, Codecademy has a nice Python course available if you'd like to make your own script.
by Mousebumples » Tue Feb 11, 2014 10:12 pm
by Upska » Fri Feb 14, 2014 3:45 pm
Warning: simplexml_load_file(): http://www.nationstates.net/cgi-bin/api ... ency&v=4:1: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xF6 0x72 0x6B 0x61 in C:\xampp\htdocs\charts\update.php on line 15
by The Blaatschapen » Fri Feb 14, 2014 3:57 pm
Upska wrote:Recently I decided to write a little PHP script that would fetch the XMLs from some nations. So far the program works fine and manages to save the necessary information from the fetched XMLs, but a few errors appear at the XMLs of two specific nations: Grodka and North-West-Rhein-Failure. After a little research I removed some shards and yes, it was what I expected:Warning: simplexml_load_file(): http://www.nationstates.net/cgi-bin/api ... ency&v=4:1: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xF6 0x72 0x6B 0x61 in C:\xampp\htdocs\charts\update.php on line 15
When looking in their XMLs I find an umlaut at the indicated spot, clearly not with the right encoding. Now, my question is: how do I fix this so that my script can still fetch this info?
by Upska » Fri Feb 14, 2014 4:06 pm
The Blaatschapen wrote:Upska wrote:Recently I decided to write a little PHP script that would fetch the XMLs from some nations. So far the program works fine and manages to save the necessary information from the fetched XMLs, but a few errors appear at the XMLs of two specific nations: Grodka and North-West-Rhein-Failure. After a little research I removed some shards and yes, it was what I expected:
When looking in their XMLs I find an umlaut at the indicated spot, clearly not with the right encoding. Now, my question is: how do I fix this so that my script can still fetch this info?
Don't state that the XML is in UTF-8, but rather in another encoding?
<?php
simplexml_load_file(utf8_encode($url));
// nor
simplexml_load_file(mb_convert_encoding($url, 'UTF-8"));
?>
by Shadow Afforess » Sun Feb 16, 2014 7:26 pm
by Themightymanuel » Wed Feb 19, 2014 9:07 am
by Themightymanuel » Wed Feb 19, 2014 11:42 am
by [violet] » Wed Feb 19, 2014 4:19 pm
Upska wrote:Now, my question is: how do I fix this so that my script can still fetch this info?
by [violet] » Wed Feb 19, 2014 4:27 pm
Shadow Afforess wrote:Uh, so who was the genius who reset the event id counting for happenings? It was up to 14469023 and got reset back to zero on 2014-02-09 02:27:04 UTC. Not cool. Repeating ids are not cool. Fortunately I wasn't using it as an index, but it did cause me to not record 8 days worth of data.
by Shadow Afforess » Wed Feb 19, 2014 4:31 pm
[violet] wrote:Shadow Afforess wrote:Uh, so who was the genius who reset the event id counting for happenings? It was up to 14469023 and got reset back to zero on 2014-02-09 02:27:04 UTC. Not cool. Repeating ids are not cool. Fortunately I wasn't using it as an index, but it did cause me to not record 8 days worth of data.
We had a major downtime incident which corrupted the Happenings data (despite it being in a 4-volume RAID array). I was not able to restore it.
by Lad Wolf » Sun Feb 23, 2014 12:09 pm
Advertisement
Users browsing this forum: Cyptopir, Ezaekia, Heromerland, IC-Water, ImSaLiA, Mallansaia, Merulla, Mordhaus, Osagh, Radicalania, Reyo, The Southern Dependencies, Tomie
Advertisement