These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
How to make a request with scope: "characterMailRead" from ESI?
function mailInfoRequest(){ var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange=function() { if (this.readyState == 4 && this.status == 200) { } } xhttp.open("GET", "https://esi.tech.ccp.is/dev/characters/" + characterID + "/mail/?datasource=tranquility", true); xhttp.setRequestHeader("Authorization", "Bearer " + access_token); xhttp.send();}
{"error": "token not valid for scope(s): esi-mail.read_mail.v1"}
function charInfoRequest(){ var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange=function() { if (this.readyState == 4 && this.status == 200) { } } xhttp.open("GET", "https://login.eveonline.com/oauth/verify", true); xhttp.setRequestHeader("Authorization", "Bearer " + access_token); xhttp.send();}
{"CharacterID":xxx,"CharacterName":"xxx","ExpiresOn":"xxx","Scopes":"characterMailRead","TokenType":"Character","CharacterOwnerHash":"xxx","IntellectualProperty":"EVE"}
Woo! CSM XI!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
Developer of EVEmail