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 However, there is no resource at the API root. 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. So if your site server name is www.gar.org and the path to your StatusNet install is statusnet, your API root will be: Authentication Gotchas Atom.
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: #Getting server info Server configuration options like the maximum notice length could change from time to time, so should be refreshed at least once per session.
<? 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 ;-) Activate the Plugin.