to get access token for the rest message sendng, is it possible not to put the client id and secret?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 03:16 PM
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.setEndpoint('https://apigtwb2cnp.us.dell.com/auth/oauth/v2/token');
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