I am diving deeper into PHP and decided I’d create a market data application that would collect information from NPC stations and public player structures. I have immediately slammed into a brick wall called oauth.
I have built the ESI url that returns a good auth code like so:
that I can stick in a browser and retrieve a code. The problem is that I want to do this programmatically when I run a script and sticking it in a browser requires me to log in with username/password and select a character.
How can I send these details programmatically so I don’t have to pull an auth code from a web site every time I run the script?
You can’t. That would defeat the purpose of OAuth. The proper way to go about this is to go thru the flow once, then save your access_token and refresh_token. You can use the refresh_token to get a new access_token programatically without needing the UI again.