Yosodog Posted July 7, 2015 Share Posted July 7, 2015 Getting this "Connect Error (1045) Access denied for user 'martiane_polwar'@'localhost' (using password: YES)" Just as I made my script :'( Quote [22:37:51] <&Yosodog> Problem is, everyone is too busy deciding which top gun character they are that no decision has been made BK in a nutshell Link to comment Share on other sites More sharing options...
Nicklas Posted July 7, 2015 Share Posted July 7, 2015 Did you change the DB password as part of your attempts to find that unrelated exploit? Either way, if you haven't changed it you should. Quote Link to comment Share on other sites More sharing options...
Jroc Posted July 7, 2015 Share Posted July 7, 2015 Can you make an API that would relay the current PPU of a resource and that's resource's name? Just a simple get would work amazingly. 1 Quote Link to comment Share on other sites More sharing options...
Dwynn Posted July 8, 2015 Share Posted July 8, 2015 Getting this "Connect Error (1045) Access denied for user 'martiane_polwar'@'localhost' (using password: YES)" Just as I made my script :'( fixed Quote He's right, I'm such a stinker. Play my exceptional game! Link to comment Share on other sites More sharing options...
dmjohnston Posted July 9, 2015 Share Posted July 9, 2015 Market data api would be fantastic. Quote ☾☆ Priest of Dio º¤ø„¤¤º°¨ ø„¸¸„¨ ø„¸¸„ø¤º°¨¨°º¤ø„¸¸„ø¤º°¨¨°º¤ø„¸ ¨°º¤ø„¸ GOD EMPEROR DIO BRANDO¨°º¤ø„¸ ¨°º¤ø„¸ DIO BRANDO GOD EMPEROR¨°º¤ø„¸ ¨°º¤ø„¤¤º°¨ ø„¸¸„¨ ø„¸¸„ø¤º°¨¨°º¤ø„¸¸„ø¤º°¨¨°º¤ø„¸ Link to comment Share on other sites More sharing options...
Dolphman Posted July 9, 2015 Share Posted July 9, 2015 (edited) DId not notice we had an somewhat official API now, let me dig up some of my python work on it. I'll update my unrealeased API wrapper for Politics and War (Like I said I would a few months back) and put it up somewhat soon Edited July 9, 2015 by Dolphman Quote Leader of UPS Link to comment Share on other sites More sharing options...
Dolphman Posted July 9, 2015 Share Posted July 9, 2015 fixed Not Fixed. getting the same error Quote Leader of UPS Link to comment Share on other sites More sharing options...
Dolphman Posted July 9, 2015 Share Posted July 9, 2015 The only thing that worries me about having everything accessible by API is the amount of automation that people will be able to create. With the PW.Tools everything requires user interaction. What's being asked for is already achievable (I already store all nations and city information once a day), but having it all API accessible just begs for people to automate a lot of processes. Dont make an API for Requests (ie, cant buy infra with /api/), while automation attempts may be made, Im doubtful they be that advanced Quote Leader of UPS Link to comment Share on other sites More sharing options...
Yosodog Posted July 10, 2015 Share Posted July 10, 2015 Not Fixed. getting the same error Yeah they must've changed the user and password in wake of the exploit and forgot to fix it for the api. I wasn't able to collect stats last night Quote [22:37:51] <&Yosodog> Problem is, everyone is too busy deciding which top gun character they are that no decision has been made BK in a nutshell Link to comment Share on other sites More sharing options...
Dwynn Posted July 11, 2015 Share Posted July 11, 2015 Updated and fixed again. 1 Quote He's right, I'm such a stinker. Play my exceptional game! Link to comment Share on other sites More sharing options...
martbhell Posted July 11, 2015 Share Posted July 11, 2015 This is nice! Government is spelt goverment I think. popdensity value or basepopdensity aren't the same as population density in the web ui - something I'm missing here? Quote Link to comment Share on other sites More sharing options...
Yosodog Posted July 15, 2015 Share Posted July 15, 2015 (edited) Not sure what's the problem honestly, but there seems to be a few issues with the city api. I pasted the data into here: http://jsonformatter.curiousconcept.com/ and http://jsonlint.com/and there seems to be a few issues but I couldn't tell you what it is :/ Edited July 15, 2015 by Yosodog Quote [22:37:51] <&Yosodog> Problem is, everyone is too busy deciding which top gun character they are that no decision has been made BK in a nutshell Link to comment Share on other sites More sharing options...
Greatnate Posted July 15, 2015 Share Posted July 15, 2015 This is nice! Government is spelt goverment I think. popdensity value or basepopdensity aren't the same as population density in the web ui - something I'm missing here? Population Density is a display figure that is calculated after disease deaths, crime deaths, and city age are factored in. Basepopdensity is the population density used to calculate disease deaths. Any chance of adding the city/project timer to the nation api? Quote Link to comment Share on other sites More sharing options...
Shakyr Posted August 7, 2015 Share Posted August 7, 2015 (edited) Is there a way to retrieve an alliance by knowing it's name (and not ID)? If not, could we at least get a page that we could access, that is simply an array of "Alliance Name" => ID? EDIT: Also, there is no way to currently retrieve a list of nation IDs, of all the members in an alliance. This would make the alliance API alot more useful, if this was added. Edited August 7, 2015 by Shakyr Quote Link to comment Share on other sites More sharing options...
Greatnate Posted August 18, 2015 Share Posted August 18, 2015 Could we get bieged nations and grey nations added to the alliance api? Or maybe just nations actually on color? Either option would be very helpful. Quote Link to comment Share on other sites More sharing options...
Shakyr Posted August 26, 2015 Share Posted August 26, 2015 Could the nation API please display whether the nation is in vacation mode (and how many turns are remaining)? Quote Link to comment Share on other sites More sharing options...
Guest Frawley Posted October 9, 2015 Share Posted October 9, 2015 (edited) Could we please have a couple of new api pages, they would really help with data collection. Nation List https://politicsandwar.com/api/nations/ Nation (Ruler, Nation, Alliance, Alliance ID, ID), Colour, Continant, Score, Rank Alliance List https://politicsandwar.com/api/alliances/ Alliance, Alliance ID, Created, Colour, Continant War List https://politicsandwar.com/api/world/conflicts/ War ID, Attacker (Ruler, Nation, Alliance, Alliance ID, ID), Defender (Ruler, Nation, Alliance, Alliance ID, ID), Date Started War Detail https://politicsandwar.com/api/nation/war/timeline/war=67473 Same as above but also a section with Date, Event Embargos https://politicsandwar.com/api/world/embargoes/ Embargo ID, Initiator Ruler, Initiator Nation, Initiator Alliance, Initiator Alliance ID, Initiator ID, Embargoed Ruler, Embargoed Nation, Embargoed Alliance, Embargoed Alliance ID, Embargoed ID, Date Started, Reason, Active (True/False) Tax Records - Must be logged in to see https://politicsandwar.com/api/alliance/id=[ALLIANCEID]&display=banktaxes Timestamp, ID, Notes, Sender(Name, Ruler, ID, Alliance Flag(True/False)), Reciever(Name, Ruler, ID, Alliance Flag(True/False)), Money, Food, Coal, Oil, Uranium, Lead, Iron, Bauxite, Gasoline, Munitions, Steel, Aluminium Bank Records - Must be logged in to see https://politicsandwar.com/api/alliance/id=[ALLIANCEID]&display=bank Timestamp, ID, Notes, Sender(Name, Ruler, ID, Alliance Flag(True/False)), Reciever(Name, Ruler, ID, Alliance Flag(True/False)), Money, Food, Coal, Oil, Uranium, Lead, Iron, Bauxite, Gasoline, Munitions, Steel, Aluminium Trade Lists https://politicsandwar.com/api/nation/trade/display=world Trade ID, Timestamp, Buy/Sell, Resource ID, Resource Name, PPU, Volume, Offering Nation (Ruler, Name, ID, Alliance, Alliance ID) Edited October 9, 2015 by Frawley Quote Link to comment Share on other sites More sharing options...
Dalinar Posted October 11, 2015 Share Posted October 11, 2015 Could we please have a couple of new api pages, they would really help with data collection. Nation List https://politicsandwar.com/api/nations/ Nation (Ruler, Nation, Alliance, Alliance ID, ID), Colour, Continant, Score, Rank Alliance List https://politicsandwar.com/api/alliances/ Alliance, Alliance ID, Created, Colour, Continant War List https://politicsandwar.com/api/world/conflicts/ War ID, Attacker (Ruler, Nation, Alliance, Alliance ID, ID), Defender (Ruler, Nation, Alliance, Alliance ID, ID), Date Started War Detail https://politicsandwar.com/api/nation/war/timeline/war=67473 Same as above but also a section with Date, Event Embargos https://politicsandwar.com/api/world/embargoes/ Embargo ID, Initiator Ruler, Initiator Nation, Initiator Alliance, Initiator Alliance ID, Initiator ID, Embargoed Ruler, Embargoed Nation, Embargoed Alliance, Embargoed Alliance ID, Embargoed ID, Date Started, Reason, Active (True/False) Tax Records - Must be logged in to see https://politicsandwar.com/api/alliance/id=[ALLIANCEID]&display=banktaxes Timestamp, ID, Notes, Sender(Name, Ruler, ID, Alliance Flag(True/False)), Reciever(Name, Ruler, ID, Alliance Flag(True/False)), Money, Food, Coal, Oil, Uranium, Lead, Iron, Bauxite, Gasoline, Munitions, Steel, Aluminium Bank Records - Must be logged in to see https://politicsandwar.com/api/alliance/id=[ALLIANCEID]&display=bank Timestamp, ID, Notes, Sender(Name, Ruler, ID, Alliance Flag(True/False)), Reciever(Name, Ruler, ID, Alliance Flag(True/False)), Money, Food, Coal, Oil, Uranium, Lead, Iron, Bauxite, Gasoline, Munitions, Steel, Aluminium Trade Lists https://politicsandwar.com/api/nation/trade/display=world Trade ID, Timestamp, Buy/Sell, Resource ID, Resource Name, PPU, Volume, Offering Nation (Ruler, Name, ID, Alliance, Alliance ID) This would be fantastic Quote I will take responsibility for what I have done, if I must fall, I will rise each time a better man. Link to comment Share on other sites More sharing options...
Yosodog Posted October 11, 2015 Share Posted October 11, 2015 Could we please have a couple of new api pages, they would really help with data collection. Nation List https://politicsandwar.com/api/nations/ Nation (Ruler, Nation, Alliance, Alliance ID, ID), Colour, Continant, Score, Rank Alliance List https://politicsandwar.com/api/alliances/ Alliance, Alliance ID, Created, Colour, Continant War List https://politicsandwar.com/api/world/conflicts/ War ID, Attacker (Ruler, Nation, Alliance, Alliance ID, ID), Defender (Ruler, Nation, Alliance, Alliance ID, ID), Date Started War Detail https://politicsandwar.com/api/nation/war/timeline/war=67473 Same as above but also a section with Date, Event Embargos https://politicsandwar.com/api/world/embargoes/ Embargo ID, Initiator Ruler, Initiator Nation, Initiator Alliance, Initiator Alliance ID, Initiator ID, Embargoed Ruler, Embargoed Nation, Embargoed Alliance, Embargoed Alliance ID, Embargoed ID, Date Started, Reason, Active (True/False) Tax Records - Must be logged in to see https://politicsandwar.com/api/alliance/id=[ALLIANCEID]&display=banktaxes Timestamp, ID, Notes, Sender(Name, Ruler, ID, Alliance Flag(True/False)), Reciever(Name, Ruler, ID, Alliance Flag(True/False)), Money, Food, Coal, Oil, Uranium, Lead, Iron, Bauxite, Gasoline, Munitions, Steel, Aluminium Bank Records - Must be logged in to see https://politicsandwar.com/api/alliance/id=[ALLIANCEID]&display=bank Timestamp, ID, Notes, Sender(Name, Ruler, ID, Alliance Flag(True/False)), Reciever(Name, Ruler, ID, Alliance Flag(True/False)), Money, Food, Coal, Oil, Uranium, Lead, Iron, Bauxite, Gasoline, Munitions, Steel, Aluminium Trade Lists https://politicsandwar.com/api/nation/trade/display=world Trade ID, Timestamp, Buy/Sell, Resource ID, Resource Name, PPU, Volume, Offering Nation (Ruler, Name, ID, Alliance, Alliance ID) You can already gather all of this without the need for an API, but holy !@#$ it would make life so much easier. Quote [22:37:51] <&Yosodog> Problem is, everyone is too busy deciding which top gun character they are that no decision has been made BK in a nutshell Link to comment Share on other sites More sharing options...
dmjohnston Posted October 14, 2015 Share Posted October 14, 2015 Alliance list alone would be fantastic. Also market data. Sheepy and Malone, is there any intention to add to this? It's been a while since we've seen anything new on this front despite a lot of suggestions. Quote ☾☆ Priest of Dio º¤ø„¤¤º°¨ ø„¸¸„¨ ø„¸¸„ø¤º°¨¨°º¤ø„¸¸„ø¤º°¨¨°º¤ø„¸ ¨°º¤ø„¸ GOD EMPEROR DIO BRANDO¨°º¤ø„¸ ¨°º¤ø„¸ DIO BRANDO GOD EMPEROR¨°º¤ø„¸ ¨°º¤ø„¤¤º°¨ ø„¸¸„¨ ø„¸¸„ø¤º°¨¨°º¤ø„¸¸„ø¤º°¨¨°º¤ø„¸ Link to comment Share on other sites More sharing options...
Greatnate Posted October 26, 2015 Share Posted October 26, 2015 Could we add stats for infrastructure lost, cash looted, and cash lost? That would round out the war stats nicely. Quote Link to comment Share on other sites More sharing options...
Shakyr Posted November 5, 2015 Share Posted November 5, 2015 I've just noticed today, that errors are now in json format. Nice change. Old Errors: Nation doesn't exist. New Errors: { "error": "Nation doesn't exist." } Guess I'll be having fun tonight updating scripts, to recognise the new format. Quote Link to comment Share on other sites More sharing options...
Guest Frawley Posted December 2, 2015 Share Posted December 2, 2015 Thanks for adding the Nations Page! Quote Link to comment Share on other sites More sharing options...
Guest Frawley Posted December 21, 2015 Share Posted December 21, 2015 Any plans to add a few more api pages Sheepy? Quote Link to comment Share on other sites More sharing options...
Dan77 Posted December 23, 2015 Share Posted December 23, 2015 Could we have an alliances API in the same way that we have a nations API? 1 call for all alliance data would be better than having to keep the list up to date and pull them all separately. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.