Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
microwin88x
Contributor II

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!

Community Browser