What is the easy way to create - signIn with twitter?
let restURL: string = “https://api.twitter.com/oauth2/token”;
let headers = new Headers({
‘Content-Type’: ‘application/x-www-form-urlencoded;charset=UTF-8’ ,
‘Content-Length’: ‘29’,
‘token’:‘xxxxxxxxxxxx’,
‘Accept-Encoding’: ‘gzip’,
‘User-Agent’:‘My Twitter App v1.0.23’,
‘Authorization’:‘xxxxxxxxx’,
‘grant_type’:‘client_credentials’});
let options = new RequestOptions({ headers: headers });
return this.http.post(restURL, null,options)