Verify character that authed in


(Blackpearl) #1

I am using c# to develop the app. I have everyhing working with the tokens and recieving endpoint information. I cannot however figure out how to verify which character is using the app, and retrieve the ID of the character.
I COULD just have the user Enter the character name into a textbox and search that way… but I shouldnt have to if there are other options. There has to be a way to say “who am I?” and then I get back a character ID.

any thoughts?


(Blackpearl) #2

Solved… That is how it usually works… you research for two days… you post in the forum then immidiately figure it out…

[Solution]

using (var client = new WebClient())
{
client.Headers[HttpRequestHeader.Authorization] = "Bearer " + MyToken.access_token;
client.Headers[HttpRequestHeader.ContentType] = “application/x-www-form-urlencoded”;
string url = “https://login.eveonline.com/oauth/verify”;
string response = client.DownloadString(url);

        }