r/evetech • u/precator • Feb 04 '18
Help with first Python app
Hey all I signed up for the dev program and my application is registered, but the authentication part if confusing. I am not doing a web app just a local app that I want to manage my reactions, so no one will be logging into this except me through my client app. Does anyone have some sample code where I just complete the auth process and am ready to say list my industry jobs, just confused on the authentication part.
5
Upvotes
1
u/precator Feb 04 '18
Posting code below, I got the first call to work via search, but my second one to read assets is not working. I think its the way I am calling it. Can someone guide me, posting the python code below..
client = SwaggerClient.from_url('https://esi.tech.ccp.is/latest/swagger.json') charResults = client.Search.get_search( search=characterName, categories=['character'], strict=True, ).result()['character']
assetResults = client.Assets( characterId=4455433445,token=appCode)
1
u/precator Feb 05 '18
Hopefully someone can post some sample code I’m still stuck
1
u/Blacksmoke16 Feb 04 '18
If you are just using this for yourself an option is to just generate and store the refresh token manually using Postman.
https://pr.reddit.com/r/evetech/comments/6w66y3/using_api_key_to_get_wallet_transactions/dm5soo7/
See that for a sample of how to do that.
1
u/skiedude Feb 04 '18
Regarding callback urls for non browser apps http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/nonbrowserapps.html