Im a little stuck on how to use the HTTP Post a body request.
I have HTTP GET working to download files, do API Calls with parameters / headers etc.
I just cant get the the POST a Body working.
I've written the JSON data in the "Create a txt file" with input job.
i've tried to set it as the body content. etc.
and i get back an error "invalid token" which means it hasn't sent the json.
I have it working in POSTMAN so i know it's all correct and working.
**Example POST**
https://www.myurl.com.au/services/api.p ... plate+info
JSON:
Code: Select all
{
"method": "setOrderStatus",
"token": "QWASUjsh1221",
"order_id": 16,
"order_status": 2,
"comment": "order status has been updated",
"notify": 1,
"courier_company_name": "test",
"tracking_number": "1234",
"product_info": "This is Standard Product",
"template_info": "This is template info"
}
Any help is appreciated!
Thanks