Surf 11 » Calling the Blogger API From ColdFusion

Finding the best waves on the web.

Here's a code snippet that you can use to call the Blogger API web service from ColdFusion:

<cfsavecontent variable="xmlRPCCall"><?xml version="1.0" ?>
<methodCall>
	<methodName>blogger.getUsersBlogs</methodName>
	<params>
		<param><value><string>0123456789ABCDEF</string></value></param>
		<param><value><string>username</string></value></param>  
		<param><value><string>password</string></value></param>
	</params>
</methodCall>
</cfsavecontent>

<cfhttp method="post" url="http://plant.blogger.com/api/RPC2" charset="utf-8">
	<cfhttpparam type="XML" value="#xmlRPCCAll#">
</cfhttp>

<cfset result = XmlParse(cfhttp.filecontent)>

<cfdump var="#result#">

Check out the Blogger API docs for more info.



Related Entries
On 01/02/2013 at 12:00:00 AM UTC Jake wrote:
1
Without using this in parallel to some blogging application, what's the point of doing this?

Name:

Email: (optional, not displayed on site)
   Subscribe to this thread
Comments: (html will be escaped)



Subscribe to our RSS Feed: subscribe to this feed XML
Archives   Tags   Contact