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. houses for sale in bangalore
    Chartered Housing is one of the best Real estate developers in Bangalore, and we undertake a variety of real estate projects such as apartments, villas, plots, etc. • Chartered Housing is one of the best real estate developers in Bangalore, and we undertake a variety of real estate projects such as apartments, villas, plots etc.

    ReplyDelete
  3. Thanks for sharing great informational content.
    Read latest technology related blogs
    kissanime ru
    sbcglobal email login

    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 ...