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:
PUT 
/m8/feeds/profiles/domain/meditech.com/full/[userName]?xoauth_requestor_id=[admin_email]

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.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-apps-mgmt-apis/-/tIY8O_rnJmAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply via email to