The issue is, i cant.
Like a lot of web services that rely on API data, a lot of this happens in the background. In the same way yapeal etc worked. AKA, every 5 mins my system looks for all characters who have not been processed last time, It then goes though ALL the things i need, assets, etc and pulls them and updates a database. ESI is designed to be stored, but ccps has not given any though as to how we store things. For example, there is no way to determine primary key from swagger schema. Like xml, esi is better, but its still a half arsed ccp botch it and leg it, but that’s another story.
The issue is, to run a service like yapeal, where i get refresh tokens then continually refresh data via cron jobs, i need all keys to have the required scopes already.
Also, as any web admins knows, the moment you force people to log in EVERY time they visiting your site…you can grantee they will never visit the site. This means we go to all the work, for a service no one will use because ccp have mad it so i have to make people log in every time ?>
That means ccp have created a server that is not worth implementing, because i know fora fact that if I make my corp log in to my site EVERY time they want to do anything…they just wont bother with it.
It isnt a pain…its a game breaker.
Also, the idea that we have to login with specific scopes on use, means that ESI is designed to be consumed, not stored. Yet it is cached, meaning they expect us to store data and obey cache timers ???
This kind of feeds into my other story… ccp has once again thrown this together without any real thought to the end user. They are expecting us to store data so as to mot spam them as we are expected to obey cache timers, we can’t do that without at the VERY least, storing the json and recording timers. But, due to how the Keys now work…we are being asked to make real time requests, requesting scopes as needed…and that means they want use to consume esi data, not store it… Either they are asking us to do both, which makes no sense, or more likely , they have given it any thought at all, and this is another half baked api from 1 man working part time on a service they have committed to but don’t really want to spend the time to develop properly
I either store data and obey cache timers OR i consume data and don’t store it at all …which is it ccp ?