Advertisement
Guest User

Untitled

a guest
Oct 5th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. curl -v https://login.salesforce.com/services/oauth2/token -d "grant_type=password&client_id=<client_id>&client_secret=<client_secret>&username=name@address.com&password=<password><security-token>" -H "Content-Type:application/x-www-form-urlencoded"
  2.  
  3. var task = auth.UsernamePasswordAsync(
  4. <client_id>,
  5. <client_secret>,
  6. name@address.com,
  7. <password><security_token>,
  8. https://login.salesforce.com/services/oauth2/token);
  9.  
  10. task.Wait();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement