Step Two: Connecting With OAuth
You must create a connected app before you can do this step. For details, see Step One: Setting Up Authentication.
The value of
grant_type depends on the OAuth authentication flow you use. For this flow, the value is
The OAuth flow used in this example is not suitable for production client apps, because it involves passing in the client secret. Use of the username-password flow is not recommended for most applications.
Generate the access token.
The following is an example of the cURL command to generate an access token:
The following is the response that includes the access token:
Access the Data.com Match API using the access token.
OAuth has a variety of implementation possibilities.
Web application developers use different OAuth implementations to securely connect applications they develop with Salesforce. For detailed information about OAuth see Authorize Apps with OAuth in Salesforce Help.