Authentication Pseudo code walk thru??
I was able to connect and retrieve customers. However, I would like some sort of a walk through as to how the Authentication process should be handle by a client. The way I did it:
- I have a view that initiates the connection with Lightspeed. It sends my Client ID, the scope etc etc.
- I get redirected to the main view which turns the Temporary Code and exchanges it for an access token. I use this same function/view to retrieve AccountID (customers accounts).
This works but somehow it retrieves 20-30 (dont remember the number) of records because I guess it needs to be paginated. My confusion is, do I have to use the same code all together everytime I jump to another page of my client?? A pseudo code would greatly help me and I am sure others on how to build a working client.