You need to sign in to do that
Don't have an account?
Net Tech International
How to automatically authorize an application without user interaction
I am trying to setup the OAuth process to get the access_token, specifically in PHP using this example (http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php). However, I don't know how to avoid the "Allow Access" page that shows up, I would like to be autimatically allowed so the application can continue and get the access_token... It would be a pain to have to manually allow access on every system I am planning on implementing this integration.. What am I missing?
I dont know much about PHP, i am posting generic CURL statement that will be hlepful to understand.
curl https://<instance>.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=myclientid" -d "client_secret=myclientsecret" -d "mylogin@salesforce.com" -d "password=mypassword123456"
</pre>
This will return JSON format data which will contain acceess_token to be used for further calls. and than use REST URL as follows
<pre>
curl https://instance_name.salesforce.com/services/data/v38.0/ -H "Authorization: Bearer "THIS_IS_THE_ACCESS_TOKEN_RECEIVED_EARLIER>"
</pre>
All Answers
I dont know much about PHP, i am posting generic CURL statement that will be hlepful to understand.
curl https://<instance>.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=myclientid" -d "client_secret=myclientsecret" -d "mylogin@salesforce.com" -d "password=mypassword123456"
</pre>
This will return JSON format data which will contain acceess_token to be used for further calls. and than use REST URL as follows
<pre>
curl https://instance_name.salesforce.com/services/data/v38.0/ -H "Authorization: Bearer "THIS_IS_THE_ACCESS_TOKEN_RECEIVED_EARLIER>"
</pre>
Dekhte Dekhte Lyrics (https://lyricsdesk.com/dekhte-dekhte-lyrics/)