Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. let headers = new Headers();
  2. headers.append('Authorization', 'Basic' + btoa(this.client_id + ':' + this.client_secret));
  3. headers.append('Content-Type', 'application/x-www-form-urlencoded');
  4.  
  5. return this.http.post(this.authenticationUrl, 'grant_type=password&username=spiros&password=qwerty1234', {headers: headers})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement