
Hello All,
I am trying to use an API which is authenticated using bearer token. I have managed to generate access token from the provided API but How do I send the generated access token to another API for accessing its data. Below is the code :-
HttpClient.BaseAddress := Uri.Uri(provide base url);
HttpResponseMessage := HttpClient.PostAsync(provided api path,HttpContent).Result;
HttpResponseMessage.EnsureSuccessStatusCode();
result := HttpResponseMessage.Content.ReadAsStringAsync.Result;
MESSAGE(FORMAT(result.ToString));
Any help would be appreciated.
Thanks
I think you should use request header "Authentication" with "Bearer TOKEN_HERE".