Get data from api with headers

HOW CAN I GET DATA FROM API ? WHAT HEADERS DO I HAVE TO PASS? IS IT A TOKEN? I CANT GET DATA FROM POSTMAN. I ONLY CAN LOGIN. I NEED HEADERS OR PARAMETERS TO DO A SUCCESFULL GET.

HOW I DO IT

GET
URL:
http://sushichef.erpnext.com/api/resource/Purchase%20Receipt/

HEADERS:
Authorization = Basic ZnJhbmNvQHN1c2hpY2hlZi5jb20…

Hi Franco,

We have documentation for using our API : https://frappe.github.io/frappe/user/guides/integration/rest_api.html

Doc said :“Try to make an authenticated request”
The problem is how? if i dont have that option, just headers and parameters. In postman i get a token “basic Znj…” What is the key of this token for doing a right autenticated request With just headers?

its really bad that they dont respond and if they respond they give vague answers

Hey,

Once you login using the POST method, you need to save the cookies you get back in a cookie jar and then push these cookies on your subsequent GET and POST requests