We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

to get access token for the rest message sendng, is it possible not to put the client id and secret?

chercm
Mega Sage

Hi 

 

i am trying to get the access token for authorisation to post the rest message , is it possible not to put the client id and password in the script ?

 

tokenRequest.setHttpMethod('POST');
tokenRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
tokenRequest.setRequestBody('grant_type=client_credentials&client_id=lxxxxx&client_secret=xxxxx');
0 REPLIES 0