I follow the instruction from here to update the user password, 
http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_developers_protocol.html#Update_Account_Example

but I always got "*HTTP Error 415: Unsupported Media Type  while changing 
user password*".
However, I read most of the related issue, and they all mentioned the error 
is due to "Content-type"
but no matter what content-type I used,  I still get the same error.  
(Based on the discussed solution, I've tried   
"text/xml", "application/atom+xml", "text/plain" , "text/atom+xml" ... )

Can anyone help me with the issue? Thanks in advance. 

Here's the XML I put to google. I believe the XML is fine, because similar 
XML has been generated and POST to create new account. 
<?xml version="1.0" ?>
<atom:entry xmlns:apps="http://schemas.google.com/apps/2006"; 
xmlns:atom="http://www.w3.org/2005/Atom";>
        <atom:category scheme="http://schemas.google.com/g/2005#kind"; 
term="http://schemas.google.com/apps/2006#user"/>
        <apps:login hashFunctionName="SHA-1" password="NewPassword" 
suspended="false" userName="account"/>
</atom:entry>


btw, I used python for submitting the data 

url = "https://apps-apis.google.com/a/feeds/%s/user/2.0/%s"; % (domain, 
account)
header = {'Content-type':'text/plain', 'Authorization':'GoogleLogin 
auth='+self.auth}
opener = urllib2.build_opener(urllib2.HTTPHandler)
request = urllib2.Request(url, data=data)
for key in headers:
   request.add_header(key, headers[key])
request.get_method = lambda: 'PUT'
r = opener.open(request)
print r.read()






-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
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