Guest User

Untitled

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