JavaScript (jQuery + MooTools) get WordPress Posts from RSS as JSON

The url is structured like so: http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&q=[encoded URL of RSS feed] Replace [encoded URL of RSS feed] with the URL of the WP blog you want to fetch posts from. I’ll use mine (http://upshots.org/feed) for the samples. With either method, you’ll get back an object with the following keys: responseData responseDetails responseStatus responseData has a […]

JavaScript (jQuery + MooTools) get tweets from twitter feed

The url is structured like so: http://api.twitter.com/1/statuses/user_timeline/[twitter handle].json Replace [twitter handle] with the user whose tweets you’re requesting. I’ll use mine for the samples. With either method, you’ll get back an indexed array of objects (so the most recent tweet would be data[0]). Each object has the following keys: in_reply_to_user_id in_reply_to_user_id_str contributors in_reply_to_status_id created_at user […]