Getting temporary token issue
Hi there! I need connect my Django application with LightSpeed for importing exist products (from LS to Django) as just custom Django command.
It's should be like:
./manage.py import_orders
So as you understand this is should working totally in background. But in docs I see I need access to web for getting Temporary token: https://developers.lightspeedhq.com/retail/authentication/authentication-overview/#requesting-a-temporary-token
So my question: Only one way to get temporary token is access to browser or I can do it in background?
It's should be like:
./manage.py import_orders
So as you understand this is should working totally in background. But in docs I see I need access to web for getting Temporary token: https://developers.lightspeedhq.com/retail/authentication/authentication-overview/#requesting-a-temporary-token
So my question: Only one way to get temporary token is access to browser or I can do it in background?
Best Answer
-
jamesratcliffe Administrator, Lightspeed Staff Posts: 160 moderator
@aorzh Using the browser is the only way to get the temporary token, but you only need to do this once per Lightspeed Retail account. Once you get the refresh token, you can get new access tokens as needed without any user interaction.
James Ratcliffe
Lightspeed HQ