I'm trying to add a user to my google apps account using the
provisioning API, and I keep getting "Content-Type text/
xml;charset=utf-8 is not valid. ". Below is my code (its coldfusion):
<cfsavecontent variable="myxml">
<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:apps="http://schemas.google.com/apps/2006">
<atom:category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/apps/2006#user"/>
<apps:login userName="SusanJones-1321"
password="REMOVED" suspended="false"/>
<apps:quota limit="2048"/>
<apps:name familyName="Jones" givenName="Susan"/>
</atom:entry>
</cfsavecontent>
<cfhttp result="results" method="post" url="https://www.google.com/a/
feeds/REMOVED/user/2.0">
<cfhttpparam type="header" name="Content-type" value="application/
atom+xml">
<cfhttpparam type="header" name="charset" value="UTF-8">
<cfhttpparam type="header" name="Authorization" value="GoogleLogin
auth=REMOVED">
<cfhttpparam type="xml" value="#myxml#">
</cfhttp>
Any suggestions why this code returns "Content-Type text/
xml;charset=utf-8 is not valid" ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps 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-apis?hl=en
-~----------~----~----~----~------~----~------~--~---