I tried to add the offline_access scope in the link to get the authorization code but got an error saying invalid scope, In the Curl command to generate the access token there is no scope parameter. I am trying to get a refresh token which could be used to generate a new access token once it expires, i.e. After one day.
Could someone point me to the correct documentation or provide some suggestions. Thanks.