Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. 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