Issue
I need to call an API, with get method, with header, payload and body. Please, help me, if its possible, one example.
Solution
You can try in that way
const userData: any = {
example1: example1,
example2: example2,
example3: example3,
};
this.apiCall(userData);
}
apiCall(userData) {
this.http.get<any>('api_link', userData).subscribe(data => {
console.log('response: ', data);
});
}
Answered By - John Rosa
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.