WWW::Kickstarter::Data::User::Myself - Kickstarter user data for the logged-in user
use WWW::Kickstarter; my $email = '...'; # Your Kickstarter login credentials my $password = '...'; my $ks = WWW::Kickstarter->new(); my $myself = $ks->login($email, $password); my $iter = $myself->projects_backed(); while (my ($project) = $iter->get()) { print($project->name, "\n"); }
Kickstarter provides more information on the logged-in user than other users. This class extends WWW::Kickstarter::Data::User to provide that information.
This class provides the following API calls in addition to those provided by WWW::Kickstarter::Data::User.
my @notification_prefs = $myself->notification_prefs();
Fetches and returns the the logged-in user's notification preferences of backed projects as WWW::Kickstarter::Data::NotificationPref objects. The notification preferences for the project created last is returned first.
my @projects = $myself->projects_created();
Fetches and returns the projects created by the logged-in user as WWW::Kickstarter::Data::Project objects. The project created last is returned first.
my $projects_iter = $myself->projects_backed(%opts);
Returns an iterator that fetches and returns the projects backed by the logged-in user as WWW::Kickstarter::Data::Project objects. The most recently backed project is returned first.
Note that some projects may be returned twice. This happens when the data being queried changes while the results are being traversed.
Options:
page => $page_num
If provided, the pages of results before the specified page number are skipped.
my $projects_iter = $myself->projects_starred(%opts);
Returns an iterator that fetches and returns the projects starred by the logged-in user as WWW::Kickstarter::Data::Project objects. The most recently starred project is returned first.
See WWW::Kickstarter
To install WWW::Kickstarter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Kickstarter
CPAN shell
perl -MCPAN -e shell install WWW::Kickstarter
For more information on module installation, please visit the detailed CPAN module installation guide.