I am working on an app for a school project. I need to be able to access the contacts, delete a specific contact, and create a contact (with specific name and phone fields pre-filled out). I've been able to access the google contacts api, and I've been able to access the contacts, as well as delete contacts, however, with the post command, I am not able to create a contact.
I've thought to build the attached file. I've dumbed it down, so I can at least get it to create a contact, (and I'll add info later), but even with just this, I get an error 400 Premature end of file. I've tried the grayed out part instead of empty text, but I removed it just to get the contact creation part down.
If the content-type is anything else, I get a different error saying content type (...) is not a valid type. So I think it has to remain as atom+xml
I'm thinking it's possible that I need an xml file of sorts to upload with this, but I am not sure at all.
and the post command on these:
Any help with something like this?