Use the following curl command to POST xml data to the Batchbook api people endpoint. This will create a new Person contact in the apitest account.
curl -X POST -H "Content-Type: text/xml" -d "xml-string-data" "url"
where "xml-string-data"
is something like:
<?xml version='1.0' encoding='UTF-8'?> <person> <about nil='true'/><champion type='boolean'>false</champion> <first-name>MyXml</first-name> <last-name>ApiTest</last-name> <middle-name nil='true'/> <name nil='true'/> <prefix nil='true'/> </person>