Saturday 1 September 2012

cloudy: Using POSTER mozilla tool to get oauth token and access the REST API of salesforce

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>&client_secret=<your_client_secret>&username=<your_username>&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/CaseManagement/v1/50090000004TBNU) 

3 comments:

  1. This is great, thank you for this post.

    ReplyDelete
  2. Thank you for sharing this.
    Online 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

    ReplyDelete
  3. Thankyou for sharing this.
    Web Designing Company In Chandigarh-Robtechworld cares about understanding you and your customers brokernadir

    ReplyDelete

Introducing Lightning Base Components

Lightning Base Components are great addition to the platform and in fact revolutionary .One of the concerns around lightning component ...