| Pages: [1] :: one page |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Zymex
Interstate Highway Corporation
0
|
Posted - 2017.06.09 00:09:14 -
[1] - Quote
I noticed something weird about SSO and the API.
I am getting my orders, but the content is the same all the time. I have to relogin to the SSO and get a new access token to get new fresh data.
Is this real?
I have to login every single time to get new data?
If you make a desktop app you are basically screwed.
How do people get around this? Do I need to make a API proxy server so I can store a client secret for my desktop app? |

Althalus Stenory
Flying Blacksmiths
123
|
Posted - 2017.06.09 06:26:01 -
[2] - Quote
You mean the ESI endpoint or XML API endpoint to get your orders ?
In both case, you are probably hitting the cache (1 hour cache with ESI, probably more in XML), that's why (check "expires" header in ESI to see when you'll get fresh data
EsiPy - Python 2.7 / 3.3+ Swagger Client based on pyswagger for ESI
|

Zymex
Interstate Highway Corporation
0
|
Posted - 2017.06.09 12:07:40 -
[3] - Quote
Althalus Stenory wrote:You mean the ESI endpoint or XML API endpoint to get your orders ?
In both case, you are probably hitting the cache (1 hour cache with ESI, probably more in XML), that's why (check "expires" header in ESI to see when you'll get fresh data
ESI.
No it is not the cache. If I re-login to the SSO I can hit the character orders and get my latest fresh data.
It is literally one request, per login / access token.
This is without a client secret, aka implicit flow. |

croakroach
Guardians of the Gate I Aim To Misbehave
29
|
Posted - 2017.06.11 14:14:56 -
[4] - Quote
Zymex wrote:II am getting my orders, but the content is the same all the time. I have to relogin to the SSO and get a new access token to get new fresh data.
That's because it is cached. This route is cached for up to 3600 seconds
Zymex wrote:If I re-login to the SSO I can hit the character orders and get my latest fresh data.
That's because you circumvented the cache by changing context; which is a bad thing to do intentionally. |
| |
|
| Pages: [1] :: one page |
| First page | Previous page | Next page | Last page |