Globe51 Posted November 29, 2020 Posted November 29, 2020 From the documentation at https://developer.loyverse.com/docs/#section/Authorization/OAuth-2.0 Once you have the authorization code, your app can now request an access token by sending a request to the following Access Token URL: https://api.loyverse.com/oauth/token The payload of your request must be with Content-Type: application/x-www-form-urlencoded and include: client_id client_secret redirect_uri code grant_type (specify ‘authorization_code’) What are the client_id and client_secret and where can they be found? I have tried the AppID and App Secret from the dashboard at developer.loyverse.com, but that doesn't seem to work. I am getting the error "UNAUTHORIZED/No client secret set"
Featured Comment Jay Rock Posted November 30, 2020 Featured Comment Posted November 30, 2020 (edited) Hello dear user, please use content type: Content-Type: application/x-www-form-urlencoded instead Headers. Edited November 30, 2020 by Jay Rock
Globe51 Posted November 30, 2020 Author Posted November 30, 2020 Thanks for your rely. All appears working now. Can you confirm the unit of measurement for the "expires_in" return value? Is it seconds?
Recommended Posts
Posted by Jay Rock,
0 reactions
Go to this post