Here I make one Http request where i get the Account ID:
getAccountId(accessToken){
console.log(accessToken);
this.http.get('https://api.stackexchange.com/2.2/access-tokens/'+ accessToken)
.subscribe(data => {
console.log(data.json().items[0].account_id);
},
error=>console.log(error)
);
}
Using this account_id obtained there I want to make another Http call to this API to get the UserId:
this.http.get('https://api.stackexchange.com/2.2/users/'+ this.AccountId +'/associated')
How do i do this? any solutions?