+ Start a Discussion

generate new access token for Xero in apex

generate access token in the apex
hi friends, we can generate access token in postman by passing data and click on generate a new access token, it generates automatically access token 
can we do the same programmatically in the apex
I want to generate access token from https://api.xero.com/connections (GET)
Auth URL = https://login.xero.com/identity/connect/authorize
Access Token URL = https://identity.xero.com/connect/token
User-added image
REFERENCE (https://developer.xero.com/documentation/oauth2/sign-in) Xero dev doc
REFERENCE (https://developer.xero.com/documentation/tools/postman)
SwethaSwetha (Salesforce Developers) 
Does the appraoch mentioned in https://salesforce.stackexchange.com/questions/227885/how-to-generate-access-token-in-rest-api-with-apex help?