Jump to content

Add Treaties to Alliance or Alliances API


BrythonLexi
 Share

Recommended Posts

It seems like an oversight for there to be no official API to view alliance treaties.  I wanted to make a program that could show me the treaty web past the largest 50 alliances.  However, I cannot do this without doing an HTML read of the entire site, which seems clunky and would use a lot of bandwidth.

Is there any particular reason adding treaties to the Alliance or Alliances API would cause issues?

Example for the section (using ASM as an example) may be:

'treaties': [
{'id':790, 'type': "MDoAP"},
{'id':8835, 'type': "MDP"},
{'id':8743, 'type': "ODoAP"}
]

 

  • Like 2
  • Upvote 1
Link to comment
Share on other sites

8 minutes ago, BrythonLexi said:

It seems like an oversight for there to be no official API to view alliance treaties.  I wanted to make a program that could show me the treaty web past the largest 50 alliances.  However, I cannot do this without doing an HTML read of the entire site, which seems clunky and would use a lot of bandwidth.

Is there any particular reason adding treaties to the Alliance or Alliances API would cause issues?

Example for the section (using ASM as an example) may be:

'treaties': [
{'id':790, 'type': "MDoAP"},
{'id':8835, 'type': "MDP"},
{'id':8743, 'type': "ODoAP"}
]

 

Love this idea

@Alex

TCM3_1_281x175.png.d5f909d45f36d3dcb3722580e7b7ecc2.png
Coal Duke (Imperator Emeritus) of The Coal Mines
Diety Emeritus of The Immortals, Patres Conscripti (President Emeritus) of the Independent Republic of Orange Nations, Lieutenant Emeritus of Black Skies, Imperator Emeritus of the Valyrian Freehold, Imperator Emeritus of the Divine Phoenix, Prefect Emeritus of Carthago, Regent Emeritus of the New Polar Order

 

Link to comment
Share on other sites

43 minutes ago, BrythonLexi said:

It seems like an oversight for there to be no official API to view alliance treaties.  I wanted to make a program that could show me the treaty web past the largest 50 alliances.  However, I cannot do this without doing an HTML read of the entire site, which seems clunky and would use a lot of bandwidth.

Is there any particular reason adding treaties to the Alliance or Alliances API would cause issues?

Example for the section (using ASM as an example) may be:

'treaties': [
{'id':790, 'type': "MDoAP"},
{'id':8835, 'type': "MDP"},
{'id':8743, 'type': "ODoAP"}
]

 

Adding on an additional bit.  If this were to be added, I would prefer this to be in both Alliance and Alliances API, since if it were only in the Alliance API, it would still require over 400 calls to get all treaty links in the game (if they exist).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.