Copy link to clipboard
Copied
Has anyone used Coldfusion to talk to the Google Provisioning APIs? Specifically to modify attributes of a user account? I've looked over their documentation but I am not quite sure how to translate this into a well formed cfhttp request. Thanks!
Copy link to clipboard
Copied
I too am interested in this information.
Google apps has libraries in .NET and Java, but I'm struggling to get either of these libraries working with my CF9 server.
If anyone has any experience with the Google Provisioning API, I would love a little advice.
Copy link to clipboard
Copied
I've used the Java APIs for various Google interactions (not provisioning, but gdata mostly). I haven't used them from CF, but have used them from Java. But I can probably figure out what's not working. What exactly are you trying to do, and what's not working?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Copy link to clipboard
Copied
Thanks for your time.
Currently, I'm running into this error when I try to rename a user (the implication being that I can and have successfully authenticated and have extracted my authentication token OK):
Content-Type text/xml;charset=UTF-8 is not a valid input type.
Here is my code for trying to rename a user:
<cfsavecontent variable="myxml2">
<?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="#szNewUserName#" password="#szUserPwd#" suspended="false"/>
</atom:entry>
</cfsavecontent>
<cfhttp method="put" url="https://apps-apis.google.com/a/feeds/DOMAIN_NAME_REMOVED/user/2.0/#szOldUserName#" multipart="no">
<cfhttpparam type="header" name="Content-type" value="application/atom+xml">
<cfhttpparam type="header" name="Authorization" value="GoogleLogin auth=#szAuth#">
<cfhttpparam type="header" name="GData-Version" value="2.0">
<cfhttpparam type="xml" value="#myxml2#">
</cfhttp>
I have tried adding " charset="utf-8" to the PUT request but it changes nothing in the result (still same error). I have tried without the GData-Version header but it also changes nothing (as does removing the multipart="no").
This is on CF 9.
Thanks again!