Hi B4X team,
I have to call a API with this curl example:
this call should retrieve a Json string, here is an example :
I don't know how to instanciate an HttpJob object and set the headers
Any help should be highly appreciated
I have to call a API with this curl example:
B4X:
curl -X POST "https://api.safetyculture.io/audits" \
-d '{"template_id": "template_BB29F82814B64F559A33BF7CAA519787"}' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ..."
this call should retrieve a Json string, here is an example :
B4X:
curl -X POST "https://api.safetyculture.io/audits" \
-d '{
"template_id": "template_b043f583f34642f4b446f46eeb5405dd",
"header_items": [
{
"item_id": "f3245d42-ea77-11e1-aff1-0800200c9a66",
"label": "Conducted on",
"type": "datetime",
"responses": {
"datetime": "2016-12-10T09:08:55+00:00"
}
}
]
}' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ..."
I don't know how to instanciate an HttpJob object and set the headers
Any help should be highly appreciated