Solved

How to add TOKEN within a HTTPCaller RESTful API request?

  • 18 October 2018
  • 2 replies
  • 72 views

Badge +6

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,

icon

Best answer by jlutherthomas 18 October 2018, 16:16

View original

2 replies

Badge +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

Badge +6

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

 

Reply