How do I get salesforce access token using the REST API in exact target landing page.. Help me to do this Activity..
%%[ var @url, @clientId, @clientSecret, @result @clientid = ""Client_id" @clientSecret = "Client_secret" @url = "https://auth.exacttargetapis.com/v1/requestToken" SET @result =HTTPPost2(@url,"application/json", @clientId, @clientSecret) ]%% %%=v(@result)=%%
I used this code in landing page, instead of
client_secret I have given salesforce connected app
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.
I am getting the below error. Is this correct code for getting token from salesforce?
Error Message : An expected comma is not found in the varible declaration. Script var @url, @clientId, @clientSecret, @result @clientid = "XXXXXX. XXXXXX" @clientSecret = "XXXX" @url = "XXXXXXXX/v1/requestToken" ListID: 0 Index: 50
Description: An unexpected error occurred during the execution of the page