Skip to main content
Solved

How to add TOKEN within a HTTPCaller RESTful API request?

  • October 18, 2018
  • 2 replies
  • 523 views

juanmahere
Supporter
Forum|alt.badge.img+13

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img+2
  • Best Answer
  • October 18, 2018

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+13
  • Author
  • Supporter
  • October 18, 2018

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