Difference between revisions of "PresenceRouter"

From rukapedia
Jump to: navigation, search
Line 1: Line 1:
 +
==What is PresenceRouter?==
 +
 
A tentative project to build a desktop client that will let me route my presence information -- from [[Plazes]] and elsewhere -- to different web sites and services.
 
A tentative project to build a desktop client that will let me route my presence information -- from [[Plazes]] and elsewhere -- to different web sites and services.
  
==Jaiku==
+
==Web Services Supported==
 +
 
 +
===Jaiku===
  
 
[http://devku.org/docs API Documentation]
 
[http://devku.org/docs API Documentation]
Line 11: Line 15:
 
* '''location''' = location string as ''Neighbourhood, City, Country'' (optional)
 
* '''location''' = location string as ''Neighbourhood, City, Country'' (optional)
  
==Twitter==
+
===Twitter===
  
 
[http://groups.google.com/group/twitter-development-talk/web/api-documentation API Documentation]
 
[http://groups.google.com/group/twitter-development-talk/web/api-documentation API Documentation]
Line 21: Line 25:
 
Use HTTP Basic Authentication, passing regular Twitter username and password.
 
Use HTTP Basic Authentication, passing regular Twitter username and password.
  
==Tumblr==
+
===Tumblr===
  
 
[http://www.tumblr.com/api/ API Documentation]
 
[http://www.tumblr.com/api/ API Documentation]
Line 36: Line 40:
 
* '''generator''' (optional) - A short description of the application making the request for tracking and statistics, such as "John's Widget 1.0". Must be 64 or fewer characters.
 
* '''generator''' (optional) - A short description of the application making the request for tracking and statistics, such as "John's Widget 1.0". Must be 64 or fewer characters.
  
==Frazr==
+
===Frazr===
  
 
[http://www.frazr.com/fr/api.php API Documentation]
 
[http://www.frazr.com/fr/api.php API Documentation]
  
==Facebook==
+
===Facebook===
  
 
No external methods currently supported for status message update, but [http://www.nexdot.net/blog/2007/04/20/updating-facebook-status-using-php/ see this handy hack] for a way of doing this through the mobile method.
 
No external methods currently supported for status message update, but [http://www.nexdot.net/blog/2007/04/20/updating-facebook-status-using-php/ see this handy hack] for a way of doing this through the mobile method.
Line 69: Line 73:
 
</pre>
 
</pre>
  
==Adium==
+
==Local Applications Supported==
 +
 
 +
===Adium===
  
 
See [http://ruk.ca/wiki/PlazesAdium this code] as a starting point (uses ye olde Plazes).
 
See [http://ruk.ca/wiki/PlazesAdium this code] as a starting point (uses ye olde Plazes).

Revision as of 10:33, 1 August 2007

What is PresenceRouter?

A tentative project to build a desktop client that will let me route my presence information -- from Plazes and elsewhere -- to different web sites and services.

Web Services Supported

Jaiku

API Documentation

POST to http://api.jaiku.com/json:

  • personal_key (get from api.jaiku.com
  • method = message (140 character limit)
  • location = location string as Neighbourhood, City, Country (optional)

Twitter

API Documentation

POST to http://twitter.com/statuses/update.json:

  • status (160 character hard limit; 140 characters recommended)

Use HTTP Basic Authentication, passing regular Twitter username and password.

Tumblr

API Documentation

POST to http://www.tumblr.com/api/write:

  • email - Your account's email address.
  • password - Your account's password.
  • type - The post type
    • link looks like the best type
      • name (optional)
      • url
      • description (optional, HTML allowed)
  • generator (optional) - A short description of the application making the request for tracking and statistics, such as "John's Widget 1.0". Must be 64 or fewer characters.

Frazr

API Documentation

Facebook

No external methods currently supported for status message update, but see this handy hack for a way of doing this through the mobile method.

Example of the HTML that needs to be parsed to grab the "post_form_id" are:

With

an existing presence message:
name="post_form_id" value="bbbeb01a1abceb828a31a5208840bfdd" />
Peter is short diversion to release updated PresenceRouter at Reinvented Office in Charlottetown, PE, Canada. 
<small>(1m ago)</small>

Without an existing presence message:

name="post_form_id" value="3ee270e046ec1ec8a709324ea4c17598" />
Keep your friends up to date on your current status.<br />
<small>Tijs is:</small><br /><input type="text" name="status" size="10" /><br />
<input type="submit" name="update" value="Update" class="button" /></form></div>

The original PHP code to parse out the post_form_id was:

preg_match('/name="post_form_id" value="(.*)" \/>'.ucfirst($first_name).'/', $page, $form_id);

Local Applications Supported

Adium

See this code as a starting point (uses ye olde Plazes).