Home > MetaWeblog > Read blog posts from Squarespace using MetaWeblog API

1. Download the library from http://keithdevens.com/software/xmlrpc and save as xmlrpc.php

2. Create the following php file:

require_once dirname(__FILE__) . '/xmlrpc.php';
$result = XMLRPC_request('www.squarespace.com', '/process/service/PostInterceptor', 'metaWeblog.getRecentPosts', array(XMLRPC_prepare(YOUR_BLOG_ID), XMLRPC_prepare('YOUR_USERNAME'), XMLRPC_prepare('YOUR_PASSWORD'), XMLRPC_prepare(NUMBER_OF_POSTS)));

Replace YOUR_BLOG_ID with your blog ID, YOUR_USERNAME with your squarespace username, YOUR_PASSWORD with your squarespace password, NUMBER_OF_POSTS with the number of recent posts that your would like to show

To find your blog id, you can view the source code of your page and search "CURRENT_MODULE_ID"



Flag Counter