I have recently got involved card-farming and would like to make puppets more efficiently. I am aware that the
OSRS prohibits using a tool that interacts with the HTML to do so, but it exempts the API from such rules. However, the nation creation feature is not documented
here, and I asked around to find the template for the call, shown below.
- Code: Select all
http://www.nationstates.net/cgi-bin/build_nation.cgi?Q0=&Q1=&Q2=&Q3=&Q4=&Q5=&Q6=&Q7=&legal=1&style=50.50.50&name=NATIONNAME&flag=Default.png&email=EMAIL¤cy=CURRENCY&slogan=SLOGAN&password=PASSWORD&confirm_password=PASSWORD&type=129&animal=ANIMAL&rname=®ionpw=&history=pioneer
After filling in the URL parameters,
1 I obtained the error message "please supply a national flag." I tried using four different sources—the default, my local storage, imgur,
2 and the URL from another nation's flag shard
3—and all obtained the same error message. That caused me to suspect that the error was not related to the flag, so I tried an incomplete call,
4 which also returned "please supply a national flag", confirming my suspicion. I heard that API-based nation creation worked before my founding, so I also tried appending "&v="1-9 to the call, all of which continued to return the error message "please supply a national flag." Finally, I tried replacing the _ with %20 and %23 in an attempt to be compatible with different encodings for whitespace, all of which continued to return "please supply a national flag."
As such, I am curious about the following:
1) Is there a way to use the API to create nations?
2) If so, why isn't it documented?
3) If not, when/why was the functionality discontinued?
4) Would it be possible to make the error messages more informative?
Footnotes1Specifically,
- Code: Select all
http://www.nationstates.net/cgi-bin/build_nation.cgi?Q0=1&Q1=1&Q2=1&Q3=1&Q4=1&Q5=1&Q6=1&Q7=1&legal=1&style=50.50.50&name=Themetest8&flag=Default.png&email=EMAILREDACTED¤cy=bank&slogan=test&password=PASSWORDREDACTED&confirm_password=PASSWORDREDACTED&type=129&animal=ANIMAL&rname=the_east_pacific&history=pioneer
2https://imgur.com/a/ZLY20Xf
3On
https://www.nationstates.net/cgi-bin/ap ... 002&q=flag, I found
https://www.nationstates.net/images/fla ... 689271.png and tried using the latter as the flag parameter
4http://www.nationstates.net/cgi-bin/build_nation.cgi?Q0=1
tl;dr: How does one use the API to create new nations?
Edited to clarify questions and to add to the list of things I have tried.