background preloader

StatusNet

Facebook Twitter

Writing a plugin for Statusnet : Part 2 @ On The Fence Development. Twitter-compatible API. Twitter-compatible API The goal of the Twitter-ish API is to make it extremely easy for developers with tools that already talk to Twitter to communicate with StatusNet sites as well. The most used methods will be implemented first. The official Twitter API documentation is a good place to start for information about this API. We intend to provide full documentation on this site, but for now will have the exceptions. The following will be mostly useful for devs experienced with the Twitter API and getting ready to build in StatusNet compatibility. API root The API root for identi.ca is at To make API calls you tack on the method name. For other StatusNet installs, the API root will be determined by whatever you set your $config['site']['path'] and $config['site']['server'] variables to in config.php.

API discovery. Where do I start? So you're writing a client application using StatusNet's API; good for you! Unfortunately the down side of a federated system like ours is that you might need to work with many different StatusNet sites on different domains, with different configuration... maybe even multiple sites used by the same user! So you can't just hardcode a single API endpoint URL into your software like you can for certain monolithic services...

The good news is that StatusNet's API wants to help you find it... but you need to know what you're looking for, and when's the right time to go looking for it. Scenarios Once at account setup time: #Finding the API root If you have just a hostname or URL to the site ("identi.ca", " and need the actual API URL, you can do discovery from the web page.

Might want to check each session: Finding the API root First, find the <link rel="EditURI" type="application/rsd+xml"> in the site's home page: <? Getting server info statusnet/config. Writing a plugin for Statusnet : Part 1 @ On The Fence Development. Friendika Plugins - StatusNet Plugin - collection of little crawling things. With this addon to Friendika you can give your user the possibility to post their messages to any StatusNet instance like identi.ca for example. The messages will be strapped their rich context and shortened to to the character limit of the StatusNet instance in question if necessary. If shortening of the message was performed a link will be added to the notice pointing to the original message on your server. Please not that for interaction with StatusNet accounts you do not necessarily need this plugin. Friendika supports OStatus which means, that you can follow any StatusNet /identi.ca account and they can follow your Friendika account.

There is a similar plugin to forward public messages to Twitter Twitter Plugin . Online version of this document: If you like this addon feel free to leave a tip at flattr for it. Requirements ¶ Where to find ¶ Configuration ¶ Global Configuration ¶ If you run a version of Friendika recent enough that it has an admin panel ;-) New Tab.

StatusNet | Your Network.