WebService::TypePad - Interface to the Six Apart TypePad API
my $typepad = WebService::TypePad->new(); my $user = $typepad->users->get_user(user_id => '6p1234123412341234'); my $user_memberships = $typepad->users->get_user_memberships(user => $user);
Create a new TypePad API client instance.
By default, with no arguments, the returned object will be configured to use the API endpoints for the main TypePad service. However, the argument backend_url can be used to override this and have the client connect to a different URL. For example:
backend_url
my $typepad = WebService::TypePad->new( backend_url => 'http://127.0.0.1/', );
If no arguments are supplied, the client will do unauthenticated requests to the unauthenticated TypePad endpoints. To do authenticated requests, provide the necessary OAuth parameters. For example:
my $typepad = WebService::TypePad->new( consumer_key => '...', consumer_secret => '...', access_token => '...', access_token_secret => '...', );
If you need to obtain an access_token and access_token_secret, you can use the methods provided by WebService::TypePad::Auth.
Each noun in the TypePad API is represented in this library as a class. An instance of a noun class can be obtained by calling the method named after it on the typepad instance.
For example, to get the "users" noun, call $typepad->users. Dashes in the names are replaced with underscores to create valid Perl method names.
$typepad->users
A full list of nouns known to this version of the library is in WebService::TypePad::Noun.
Copyright 2009 Six Apart Ltd. All rights reserved.
This package may be distributed under the same terms as Perl itself.
To install WebService::TypePad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::TypePad
CPAN shell
perl -MCPAN -e shell install WebService::TypePad
For more information on module installation, please visit the detailed CPAN module installation guide.