Get an access token for legacy packages.
Salesforce marketing cloud security token.
Marketing cloud returns an access token.
The marketing cloud user for your integrated account must have the installed package administer permission.
Follow industry best practices to securely store the refresh token on an external platform.
To get an access token for oauth 2 0 api integrations review set up your development environment for enhanced packages.
Marketing cloud provides tenant specific endpoints to help secure your api requests more on this in a minute.
I used this code in landing page instead of client id and client secret i have given salesforce connected app client id and client secret but its not returning access token is this correct way to get access token from exact target landing page using oauth 2 0.
And the marketing cloud rest and soap apis are no exception.
This is the same issue as invalid security token the solution was either.
Plus you re required to use oauth tokens to access these endpoints.
Treat the refresh token like a salesforce credential.
Always enforce tls when making calls to the marketing cloud apis.
If using the exact target php soap api and unable to change the time on your server you will need to edit helpers soap wsse php specifically the addusertoken function.
At salesforce we take security seriously.
To get those endpoints and tokens you need to do a few things.
Protect the access token as you would protect user credentials.
It ensures among other things that if a user s account credentials are compromised a third party wouldn t be able to access salesforce via api or from an untrusted network.
Change the time on your server.
This access token authorizes calls in the account where you created the token.
Call the rest auth service to obtain an access token.
Keep the access token in memory only and request a new access token when needed.
This document applies only to api integrations in legacy packages.
Use the access token to authenticate your soap calls in the header.
Even small businesses can use marketing automation that will help bring in new customers and nurture the ones they already have without an army of marketers.
Get an access token.