Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. string strContent = "?grant_type=password" +
  2. "&client_id=" + "xxx.xxxx" +
  3. "&client_secret=" + "secret"+
  4. "&username=" + "amitghosh@domain.com" +
  5. "&password=" + "pass&apitoken";
  6.  
  7.  
  8. var o = new HttpClient();
  9.  
  10. var t = o.GetStringAsync("https://login.salesforce.com/services/oauth2/token"+strContent).Result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement