You need to sign in to do that
Don't have an account?
Ankit Singh 6
Refresh token not coming when i hit a curl request for salesforce report rest api
I am using this curl request (curl https://test.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=xxxxxxxxxxxx" -d "client_secret=xxxxxxxxxxx" -d "username=xxxxxxxxx" -d "password=xxxxxxxxx" ) . Using this curl request i am getting access token but no refresh token. How to get refresh token using curl request?
For this,please refer to the link below:
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm
Instead you can go for Code Authorization or Client Credentials Authorization :
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_user_agent_oauth_flow.htm
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_web_server_oauth_flow.htm