Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def accessTokenCurl = 'curl -X post '+ salesforceUrl + '?
- grant_type=password&client_id=' + clientId +
- '&client_secret='+clientSecret+'&username=' + userName + '&password=' +
- password + ' -H "Content-Type=application/x-www-form-urlencoded"'
- def testcurl = "curl
- https://INSTANCE.salesforce.com/services/data/v44.0/query/?
- q=SELECT+contact.AccountId+from+contact+where+contact.Email =mysalesforceemail@now.com" + ' -H Authorization: OAuth 00D1x0000008cHb!ARkAQEIE20ES9DRFoOXHiiIzFwOeGtnGBg15TYeEFz4t9TUYkSHY.guZ0bBbgRgGKXpbWZzlWrX3cDFT_LXmgBw4iGjRJA3W'
- [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]
Add Comment
Please, Sign In to add comment