First, I need to say that I am not using any of the client libraries as my company works primarily with our own proprietary language, so I cannot provide any source code.
I am able to pull the profile for the user, make modifications to the XML, but when I attempt to PUT the profile back, I am getting an "401 Unknown Authentication Header" error message from the server. I am using 2-legged authentication and I have enabled read/write client access for contacts through the domain control panel.
Does anyone know if 2-legged auth will not work for updating? Is it only good for pulling data, which I am able to do very easily? Creating or using an existing user as a service account seems plan silly.
The HTTP request is:
The xoauth_requestor_id parameter was required on the preceding profile retrieval - without it, Google would return a 401. I've tried the update with and without the additional parameter, but it errors in both cases.
If anyone has any tips, I would greatly appreciate it.