Skip to main content
Solved

How to add TOKEN within a HTTPCaller RESTful API request?

  • October 18, 2018
  • 2 replies
  • 457 views

juanmahere
Supporter
Forum|alt.badge.img+11

Hi guys,

I've tried to find any related question from this one, and no luck, so here is my doubt:

I want to use HTTPCaller to send a GET, POST, UPDATE,... request to this RESTful API:

API

So, authenticating the request is necessary and I'm not well related to the transformer HTTPCaller, so, I'm not sure if there is any particular option/way to insert the Token within the requests. Should be put the Token value within a the Header? I'm totally lost.

If I plainly send the request

, throws me back a http error:

HTTP/1.1 401 Unauthorized - https://xyz.api.here.com/hub/spaces?includeRights=false&owner;=me

Could you give any hint?

Thanks in advance,

Best answer by jlutherthomas

Hi @juanmahere

 

 

It looks like in a different section of the API documentation they discuss how to authorize the REST calls. You can view that here.

 

 

If you have your token, you can input it into the HTTPCaller as a header like this:

 

Authorization: Bearer <token>

0684Q00000ArLf1QAF.png

or alternatively, as a URI query parameter:

access_token=<token>

0684Q00000ArLjyQAF.png

View original
Did this help you find an answer to your question?

2 replies

Forum|alt.badge.img+2

Hi @juanmahere

 

 

It looks like in a different section of the API documentation they discuss how to authorize the REST calls. You can view that here.

 

 

If you have your token, you can input it into the HTTPCaller as a header like this:

 

Authorization: Bearer <token>

0684Q00000ArLf1QAF.png

or alternatively, as a URI query parameter:

access_token=<token>

0684Q00000ArLjyQAF.png


juanmahere
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • October 18, 2018
jlutherthomas wrote:

Hi @juanmahere

 

 

It looks like in a different section of the API documentation they discuss how to authorize the REST calls. You can view that here.

 

 

If you have your token, you can input it into the HTTPCaller as a header like this:

 

Authorization: Bearer <token>

0684Q00000ArLf1QAF.png

or alternatively, as a URI query parameter:

access_token=<token>

0684Q00000ArLjyQAF.png

Thanks a lot! How I missed that part on documentation... Oh my god...

 

It served, I've put as indicated and works (got me a 200 response):

 

 

0684Q00000ArMgaQAF.png

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings