NATION

PASSWORD

NationStates API (nationdata/regiondata)

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

Advertisement

Remove ads

User avatar
Praeceps
Bureaucrat
 
Posts: 53
Founded: Feb 08, 2016
Scandinavian Liberal Paradise

Postby Praeceps » Sun Jan 06, 2019 2:56 pm

The Northern Light wrote:Request

Would it be possible to add a Nation API shard that returns information about the nation's card deck?

For example, the shard could return the nation's bank, and a list of cards the nation has, where for each card it reports its name, rarity, and season.

Thanks a lot!

I think this is a great idea!

I know a few regions discussing ways to use cards to increase integration and activity. Having an API shard would present us with more options to build on the mini-game.
Apparently simultaneously a Ravenclaw puppet, a NPO plant, and a Warden spy. I had no idea I was that good.

Deputy Minister of Foreign Affairs and Senior Diplomat for The North Pacific, Former Minister of Foreign Affairs.

User avatar
Vulturret
Diplomat
 
Posts: 620
Founded: Aug 23, 2017
Iron Fist Consumerists

Postby Vulturret » Sun Jan 06, 2019 9:00 pm

Request

I would like to request that the private API commands available (currently only pertaining or usable for answering issues) be expanded, at least to posting and editing dispatches. This would be highly beneficial to those of less... technically inclined, to put it nicely. This, along with a few other items (which would all also be beneficial, I'm sure) was requested by HMS Unicorn back in 2016, but was never implemented or formally addressed.

Being able to edit dispatches without having to make complicated scripts with storing login cookies and the like would be highly beneficial to players who have to maintain lots of dispatches that need to change frequently (and en masse), such as the integration dispatch or list of current officials. This would also benefit those who already do dispatches via HTML, as the scripts could go faster and not have to scrape the page.

[violet] has also said in the past that these commands will be added on a "squeaky wheel" basis, and I'm not sure if this has reached this stage yet, but it seems to have been requested several times, so coming close, for sure.

I should be grateful if this is considered. Thanks! :)

EDIT: Fixed erroneous link.
Last edited by Vulturret on Sun Jan 06, 2019 9:06 pm, edited 2 times in total.
Emperor of the Ragerian Imperium
Statsminister of Balder

Patriarch of House Griffin, High King of Domlar, King of Arin, King of Haggir, King of Don, King of Fola, Grand Duke of Jorn, High Patrician of Kola, Chieftain of the Amir, Warmaster of Alaan, Baselius of Tol, Samrat of Ayn, and Grand High Magistrate of Korrer
Member of the Storting of Balder
Member of the Citizens' Assembly Advisory Board of Europeia
Minister of Culture of Europeia
Minister of Communications of Balder
Citizens' Assembly Chair of Europeia
Speaker of the Rejected Realms
Imperator of the Dark Vanquishers
Caliph of the Arabian Empire

User avatar
Imperium Anglorum
Powerbroker
 
Posts: 8427
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Sat Jan 12, 2019 8:44 pm

When the API gives an option (known in the GA as Strength, Area of Effect; SC as nominee, target), sometimes it gives 0. What is this? And it occurs, I believe, in area of effect categories.

Author: 1 SC and 26 GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
Delegate for Europe
Out-of-character unless marked otherwise
Ideological Bulwark 285, WALL delegate

User avatar
Agadar
Powerbroker
 
Posts: 7754
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Sun Jan 13, 2019 9:40 am

Is there a way to get the number of RMB pages? There is no available property for it on the Region resource, and it can't be derived from the Messages property.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Imperium Anglorum
Powerbroker
 
Posts: 8427
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Sun Jan 13, 2019 2:16 pm

Also, can we get legality information from the WA proposals API?

Author: 1 SC and 26 GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
Delegate for Europe
Out-of-character unless marked otherwise
Ideological Bulwark 285, WALL delegate

User avatar
Cardashian
Political Columnist
 
Posts: 2
Founded: Jan 04, 2019
Democratic Socialists

Postby Cardashian » Tue Jan 15, 2019 6:49 am

The Northern Light wrote:Request

Would it be possible to add a Nation API shard that returns information about the nation's card deck?

For example, the shard could return the nation's bank, and a list of cards the nation has, where for each card it reports its name, rarity, and season.

Thanks a lot!


So much this. At the moment, when I want to see if I have cards from a certain region, I have to go through all my cards, open them, etc.

Also, I'd like a way to know which card is in most collections. But that is more the statistic geek in me :ugeek:

-Blaat on a puppet

User avatar
Darcania
Spokesperson
 
Posts: 102
Founded: Dec 29, 2014
Left-wing Utopia

Postby Darcania » Mon Jan 21, 2019 9:29 pm

The Northern Light wrote:Request

Would it be possible to add a Nation API shard that returns information about the nation's card deck?

For example, the shard could return the nation's bank, and a list of cards the nation has, where for each card it reports its name, rarity, and season.

Thanks a lot!

I would definitely love this - it would make a most lovely addition to any Discord server if I could code the bots to give info about a nation's card deck, as well as info on the nation's card itself.

User avatar
Leppikania
Minister
 
Posts: 2282
Founded: Apr 13, 2015
Left-wing Utopia

Postby Leppikania » Thu Feb 14, 2019 4:31 pm

Is there an XML schema for the API anywhere?
INTP, -4.25 Economic Left/Right, -4.1 Social Libertarian/Authoritarian, tastes like chicken.
I do use NS stats, thank you very much.
Funny Quotes
Pie charts for industries
Request an Embassy

User avatar
Trotterdam
Negotiator
 
Posts: 7093
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Thu Feb 14, 2019 11:52 pm

As far as I know, the only way to tell the format of the API results is to just test it and see what you get. The format is pretty rigid, so once you've seen an example or two you should know what to expect.

That's inconvenient for the private commands, since they're not something you can just test without side effects.

User avatar
Darcania
Spokesperson
 
Posts: 102
Founded: Dec 29, 2014
Left-wing Utopia

Postby Darcania » Fri Feb 15, 2019 5:00 pm

Trotterdam wrote:That's inconvenient for the private commands, since they're not something you can just test without side effects.

I'd recommend the use of a test puppet nation for testing private shards.

Previous

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Alexandria Eschate

Advertisement

Remove ads