Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
microwin88x
Creator III
Creator III

Get data from JSON with Headers

Hello,

I need to GET data from a JSON by using a URL that I've been given, and I was told that I need to send a header with the following data:

URL: https://example.services.com

**Authorization**: Token (Something like: dXw1gh4p2K/w==)

**Content-Type**: *GET - application/json* - *POST - application/x-www-form-urlencoded*

**X-Requested-With**: *XMLHttpRequest*

They told me that the token is a key that must be sent with the header on each GET/POST communication. Then, they sent me the following:

Service: Get Customer List

GET /api/customers.json

It brings a JSON with the customers

Example: /api/customers.json

Authorization: dXw1gh4p2K/w==

Content-Type: application/json

X-Requested-With: XMLHttpRequest

I've tried making a request with the website hurl.it but it didn't work: https://i.stack.imgur.com/62nUu.png

Am I missing something? I'm using the REST connector and using that data as in the website.

Thanks!

1 Reply
jonathandienst
Partner - Champion III
Partner - Champion III

Please do not post duplicate questions. This will create two threads and confusion.

Posters: please reply using the other thread: Get data from JSON with Headers

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein