Hi All
I am working with an api for a accounting package - I can extract information from the accounting package
if oHttp:open()
cItems2 := oHttp:ReadAll()
MEMOWRIT( "MYRESULT1.TXT", cItems2)
this is what the text file shows
{
"UID": "17ef4d73-cfa7-43fb-afe6-5350cbffffa9",
"CompanyName": "Techdata Software",
"IsIndividual": false,
"DisplayID": "TEC01",
"IsActive": true,
"Addresses": [
{
"Location": 1,
"Street": "32 Pingrup Lane\r\nScarborough ",
"City": null,
"State": "WA",
"PostCode": "6019",
"Country": null,
"Phone1": "08 9245 8945",
"Phone2": null,
"Phone3": null,
"Fax": null,
"Email": null,
"Website": null,
"ContactName": "Colin Haig",
"Salutation": "Mr"
}
],
}
I can then get the companyname
hb_jsondecode(cItems2,@hJson)
MsgInfo(hJson["CompanyName"]) displays "TechData Software"
I need to modify the companyname or change the contact name and then be able to post back
oHttp:Post(hJson,cUri)
Regards
Colin