GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::PLURK (3)

.ds Aq ’

NAME

Net::Plurk - A perl interface to Plurk API

CONTENTS

VERSION

Version 0.11

SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.



    use Net::Plurk;
    my $key = $CONSUMER_KEY;
    my $secret = $CONSUMER_SECRET;
    my $access_token = $ACCESS_TOKEN
    my $access_secret = $ACCESS_TOKEN_SECRET
    my $p = Net::Plurk->new(consumer_key => $key, consumer_secret => $secret);
    my $p->authorize(access_token => $access_token,
        access_token_secret => $access_secret)
    my $profile = $p->get_own_profile();
    $p->add_events(
        on_new_plurk => sub {
            my $plurk = shift;
            use Data::Dumper; warn Dumper $plurk;
        },
        on_private_plurk => sub {
            my $plurk = shift;
            # blah
        },
        );
    $p->listen;
    my $json = $p->callAPI( /api);
    ...



EXPORT

A list of functions that can be exported. You can delete this section if you don’t export anything, such as for a purely object-oriented module.

FUNCTIONS

    callAPI

Everything from here

    errorcode

return errorcode

    errormsg

return errormsg

    authorize

authorize with access token/secret

    callAPI

Everything from here

    _get_unique_id

given nick_name, return unique_id

    get_nick_name

given unique_id, return nick_name

    get_public_profile

call /Profile/getPublicProfile

    get_own_profile

call /Profile/getOwnProfile

    get_new_plurks

call /Polling/getPlurks arguments =>
offset: Return plurks newer than offset, formatted as 2009-6-20T21:55:34.

    karma



    return users karma, or specify user => who



    follow



    return 1 if followed someone, 0 otherwise (see errormsg)



    unfollow



    return 1 if unfollowed someone, 0 otherwise (see errormsg)



    add_plurk



    add_plurk ($content, $qualifier %opt)
    %opt: limited_to, no_comment, lang



    get_plurk



    get_plurk ($plurk_id)
    $plurk_id can be base 36 encoded, or not



AUTHOR

Cheng-Lung Sung, <clsung at cpan.org>

BUGS

Please report any bugs or feature requests to bug-net-plurk at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Plurk>. I will be notified, and then you’ll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.



    perldoc Net::Plurk



You can also look for information at:
o RT: CPAN’s request tracker

<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Plurk>

o AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/Net-Plurk>

o CPAN Ratings

<http://cpanratings.perl.org/d/Net-Plurk>

o Search CPAN

<http://search.cpan.org/dist/Net-Plurk/>

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2009~2011 Cheng-Lung Sung, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::PLURK (3) 2011-05-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.