These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Crest Access Token and Corporation Endpoint

Author
David Davaham
Deep Blue Logistics
#1 - 2016-09-03 01:02:42 UTC
I am attempting to use my Crest Access Token to query corporation contracts from the XML API. According to my CEO, I have the contract manager permission in the game. When I query the API i get the illegal page request error. At this point, I am thinking about requesting an old fashion API key from my CEO so that I can finish my application. Can somebody assist, do I need additional permissions in game, a different permission, or can I not query corporation contracts from the XML API using a Crest Access Token?

Developer of EVEmail

Blacksmoke16
Imperial Academy
#2 - 2016-09-03 03:01:11 UTC
I assume you also have corporationContractsRead scope defined in your developer's application?
Joseph Jakinov
Deep Blue Logistics
#3 - 2016-09-03 03:32:43 UTC
Blacksmoke16 wrote:
I assume you also have corporationContractsRead scope defined in your developer's application?



Yes


Selected Scopes
Blacksmoke16
Imperial Academy
#4 - 2016-09-03 04:16:22 UTC
Also providing accessType=corporation in the xml api url?

Assuming are proving the actual token and not the refresh token into the url?

Also as it may be important if you have generated that access token using a refresh token when you added the corporationContractsRead scope after the refresh token was generated then the refresh token will only return the scopes it had when it was made. So maybe try getting a new refresh token then getting a new access token and trying again
David Davaham
Deep Blue Logistics
#5 - 2016-09-03 05:58:42 UTC  |  Edited by: David Davaham
So I was missing the accessType variable in the XML URL

Now when I query the API I get a new permission

http://prntscr.com/cdkp3w

The CEO has informed me that I have the Contract Manager role granted to this character and that was as of several hours ago. Any other ideas?


BTW, Joseph is one of my alts.

Developer of EVEmail

Carbon Alabel
Gemini Talon
The Curatores Veritatis Auxiliary
#6 - 2016-09-03 09:36:30 UTC
I believe that the XML API will only accept an access token originating from the CEO or a director of the corporation. Could you get your CEO to sign into your application and try using his tokens?
David Davaham
Deep Blue Logistics
#7 - 2016-09-03 16:06:26 UTC
Carbon Alabel wrote:
I believe that the XML API will only accept an access token originating from the CEO or a director of the corporation. Could you get your CEO to sign into your application and try using his tokens?



I made the same assumption. I have reverted back to the Custom API Key for the duration of development. I have a working model, then I will worry about the Crest Stuff for that.

Thanks Everybody.

Developer of EVEmail