return user's primay site id
| Posterous documentation | view source | Contained in the Posterous distribution. |
Posterous - API to posterous.com
use Posterous; $posterous = Posterous->new($user, $pass, $site_id); $posterous->account_info; # list all sites owned by $user $posterous->add_post( title => "hello posterous", body => "Post through Posterous.pm" );
Posterous.pm just implement interface to posterous.com in Perl
constructor, $user_mail and $pass are required.
$site_id is optional for specifying which one of your site would be involved in process.
always return Base64 encoded "$user_mail:$pass" for Basic HTTP Authentication
GET /api/getsites, return a list of all sites owned by specified user
GET /api/readposts, return a list of list.
Available %options key include site_id, hostname, num_posts, page, tag.
GET /api/readposts, without Basci HTTP Authentication.
Since, site_id or hostname should be specified in %options.
Available %options key is the same as read_posts()
return a list of public posts.
POST /api/newpost, return post callback.
Available %options key include site_id, media, title, body, autopost, private, data, tags, source, sourceLink.
POST /api/newcomment, return comment callback.
Available %options key include post_id, comment.
return user's primay site id
Official API detail
http://posterous.com/api
Posterous API Ruby version
https://rubyforge.org/projects/posterous/ http://github.com/jordandobson/Posterous/tree/master
shelling, <shelling@cpan.org>
Copyright (C) 2009 by shelling
Release under MIT (X11) Lincence
| Posterous documentation | view source | Contained in the Posterous distribution. |