Fred
Fred

Reputation: 655

How to get access token and make salesforce rest api requests with paw?

Salesforce OAuth request is in the form:

$ curl https://login.salesforce.com/services/oauth2/token \
    -d "grant_type=password" \
    -d "client_id=myclientid" \
    -d "client_secret=myclientsecret" \
    -d "[email protected]" \
    -d "password=mypassword123456"

It's unclear how to enter these params in paw OAuth v2 dialog box...

Further Reading in Set Up Authorization > Session ID Authorization

Upvotes: 1

Views: 3186

Answers (1)

Micha Mazaheri
Micha Mazaheri

Reputation: 3481

It sounds like these parameters are expected to be sent in the request body as Form URL-Encoded (application/x-www-form-urlencoded). For that you need to go to the Body tab and pick the "Form URL-Encoded" mode.

Form URL-Encoded HTTP POST Request in Paw

I don't have the right Salesforce credentials to test myself, but it should be working.

Here's a Pawprint (shared snippet) of what your request looks like (you can hit "Open in Paw" on the webpage below to get the configuration of the above screenshot): https://paw.pt/azxQAGn2

Upvotes: 5

Related Questions