ikegami > WWW-Kickstarter-v1.2.0 > WWW::Kickstarter::Data::User::Myself

Download:
WWW-Kickstarter-v1.2.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

WWW::Kickstarter::Data::User::Myself - Kickstarter user data for the logged-in user

SYNOPSIS ^

   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->()) {
      print($project->name, "\n");
   }

DESCRIPTION ^

Kickstarter provides more information on the logged-in user than other users. This class extends WWW::Kickstarter::Data::User to provide that information.

API CALLS ^

This class provides the following API calls in addition to those provided by WWW::Kickstarter::Data::User.

notification_prefs

   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.

projects_created

   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.

projects_backed

   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:

projects_starred

   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.

Note that some projects may be returned twice. This happens when the data being queried changes while the results are being traversed.

Options:

VERSION, BUGS, KNOWN ISSUES, SUPPORT, AUTHORS, COPYRIGHT & LICENSE ^

See WWW::Kickstarter

syntax highlighting: