Guest User

Untitled

a guest
Sep 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $.ajax({
  2. method: "POST",
  3. url: "https://login.salesforce.com/services/oauth2/token",
  4. crossDomain: true,
  5. data: grant_type=password" +
  6. "&client_id=" + CLIENTID +
  7. "&client_secret=" + CLIENTSECRET +
  8. "&username=" + USERNAME +
  9. "&password=" + PASSWORD,
  10. dataType: 'jsonp',
  11. success: function (data) {
  12. console.log(data);
  13. },
  14. error: function (err) {
  15. console.log(err);
  16. }
  17. });
Add Comment
Please, Sign In to add comment