Using POSTER mozilla tool to get oauth token and verifying response from REST API salesforce Please follow the following steps:
Use this first as a request URL to get access token .Please use test.salesforce.com for sandbox
2)To obtain access token you must Use POST http call:
In the payload use
grant_type=password&client_id=<your_client_id>&cli ent_secret=<your_client_secret>&username=<your_use rname>&password=<your_password>
where client id,client secret you will get from your remote access settings and please append security token if you are making from unautorized IP range .Please use appropriate User Name and Password
3)Once you POST to the service you will get acess token .Please save that for future requests
4)Next in the header add following parameter and its value as
Name:Authorization
Value:Bearer +oauthtoken obtained (Bearer space and your oauth_token)
5)Now once you add header in request URL add your REST service URL in the request URL of Poster tool(eg:https://ap1.salesforce.com/services/apexrest/CaseM anagement/v1/50090000004TBNU)
This is great, thank you for this post.
ReplyDeleteThank you for sharing this.
ReplyDeleteOnline IELTS Course-If you are looking to work, live or study in an English-speaking country, then you must be able to demonstrate a high level of English language ability.
Online ielts course in Punjab
Thankyou for sharing this.
ReplyDeleteWeb Designing Company In Chandigarh-Robtechworld cares about understanding you and your customers brokernadir