PATCH command in tsNetCustom

Sean Cole (Pi) sean at pidigital.co.uk
Tue Sep 14 07:07:12 EDT 2021


Hi all,

I am in need of an example of how to use tsnet to send a PATCH request to a
REST API. I have some JSON (tJson) like '{"myField":"Data"}' and
address (tAddr) like 'https://myLink.com/object/name/idNumber' and tHeaders
like "Accept-Encoding: gzip" &cr& "Authorization: Bearer" &&
tAccessToken" &cr& "Content-length:" && tLen &cr& "Content-type:
application/json". How do I build my tsnet request?

put tsnetCustomSync(tAddr, "PATCH", tHeaders, tRecvHeaders, tResultCode,
tBytes) into tData

Where does tJson get put?

Thanks
Sean



More information about the use-livecode mailing list