Reputation: 579
I am trying to hit API on Postman. The API is working on server but I am not receiving any data. Here are the visual images:
It is responding me with "No Data" and 400 Bad Request.
Upvotes: 4
Views: 33965
Reputation:
There is only one thing you are missing.
It will work.
Upvotes: 2
Reputation: 25851
I'm guessing it's this API: https://market.mashape.com/navii/daily-fuel-price-india#main-version
Add the Content-Type: application/json
header instead of the one you have.
And the body would be something like this:
Upvotes: 1
Reputation: 431
It's paid APIand I don't want to pay for it, so let me guess ;)
Do you provide body in this request - I guess you should set something like this:
{"fuel":"p","state":"dl"}
Upvotes: 1