Just wrote quick some code sample to show how to access YQL (Yahoo Query Language) queries from PHP.
You can use the following code sample to fetch results from YQL from any standard PHP file. You would require the curl extension to be installed. If you are behind a proxy, uncomment the 3 lines and replace it with proper proxy values
If you have the Yahoo social SDK installed and you want to access results from YQL, then you can use the following code sample. Replace the text consumer_key and consumer_secret with correct values.
Upon further researching I found that there is an undocumented way of associating the urls created with your account. The undocumented way is to add an additional parameter called history with value 1 to the API URL.
Using the history parameter in bit.ly’s REST API
So for REST API, you have to use the following url.
I am not sure why bit.ly is not associating the created shorturls automatically with your account, when you provide the API Key, it is the expected default behavior. Or at least they could have documented about this history variable in their API. I guess only someone from bit.ly can answer this. 🙂
I am working on some new features for my Post to FriendFeed WordPress Plugin, and it required some additional methods to the FriendFeed API wrapper. I have added these methods to the FriendFeed API wrapper and have released it as a separate Plugin like Open Flash Chart Core Plugin.
The following are the additional methods that I have added to the FriendFeed API wrapper library.
This method accepts users nickname as input and returns the list of all of the user’s subscriptions (people) and services connected to their account (Authentication required for private users)
This method accepts users nickname as input and returns the list of all of the rooms to which the user can post (Authentication required for private users)
You can download the Plugin file from my Plugin page and then upload it to your wp-contents directory.
If you are a WordPress Plugin developer, then you can check my FriendFeed API Core Plugin to find out how to integrate FriendFeed API with you own WordPress Plugins.
PS: Incidentally this is my first blog post from Windows Live Editor.
I didn’t have much to do last weekend and so I thought of giving a try to Google Gadget and ended up developing my first Google Gadget – Bloglines Notifier. As the name implies it will notify you the count of unread items in your Bloglines account. (Nothing special just a trivial one 😉 )
You need to enter your Bloglines account email id and it will retrieve the unread count using the Bloglines API and display it in the Gadget screen. The count will be automatically refreshed according to the interval set in the Gadget settings. Since Bloglines doesn’t need you to be authenticated before retrieving the unread count you don’t need to enter your Bloglines account password.
The Google Gadget API is very simple to start with but at the same time very powerful if you need to do complex or advanced things. If you are interested grab the Google Gadget API Developers Guide and get started. It’s actually that simple.
The full source code of this Gadget is available here and if you are interested you can add it to your personalized page by clicking this button.
Now I can have one icon less in my system tray. 😉 BTW if you guys have a nice idea for a Gadget, let me know I shall give a try.