Using POST Requests for Kairos

Hello Everyone,

I am new to Xojo and haven’t used POST REQUESTs ever before.

Can you please guide me as to how to do a POST request with Header and Body.

I would like to use Kairos platform for Face Recognition / Detection.

For that, we need to

POST https://api.kairos.com/enroll

( I believe with Request )

Request

POST /enroll HTTP/1.1
Content-Type: application/json
app_id: 4985f625
app_key: aa9e5d2ec3b00306b2d9588c3a25d68e

{
“image”:" https://media.kairos.com/kairos-elizabeth.jpg ",
“subject_id”:“Elizabeth”,
“gallery_name”:“MyGallery”
}

The above API reference is available at https://www.kairos.com/docs/api/.

Can someone please guide me on how to do the above.

Regards,

Gaurav

look the urlConnection example and jsonItem example. the app_id and app_key can do it with requestHeader, the json and “Content-Type” can archive with setRequestcontent.