WWW::Kickstarter::Data::Location - Kickstarter location data
use WWW::Kickstarter; my $email = '...'; # Your Kickstarter login credentials my $password = '...'; my $ks = WWW::Kickstarter->new(); $ks->login($email, $password); my $iter = $ks->projects_ending_soon(); while (my ($project) = $iter->()) { printf "%s: %s\n", $project->name, $project->location->displayable_name; }
my $location_id = $location->id;
Returns the numerical id of the location.
my $location_slug = $location->slug;
Returns the keyword id of the location.
my $location_type = $location->type;
Returns the location's type (e.g. "Town").
my $location_country = $location->country;
Returns the location's country
my $location_state = $location->state;
Returns the location's state.
my $location_name = $location->name;
Returns the location's name.
my $location_name = $location->full_name;
Returns the location's full ("displayable") name.
my $location_name = $location->short_name;
Returns the location's short name.
my $longitude = $location->longitude;
Returns the location's longitude.
my $latitude = $location->latitude;
Returns the location's latitude.
$location = $location->refetch();
Refetches this location from Kickstarter.
This ensures the data is up to date, and it will populate fields that may not be provided by objects created by some API calls.
my $projects_iter = $location->nearby_projects(%opts);
Returns an iterator that fetches and returns as WWW::Kickstarter::Data::Project objects the projects near this location.
It accepts the same options as <WWW::Kickstarter's projects.
projects
my $project = $reward->project();
Fetches and returns the project associated with this reward as a WWW::Kickstarter::Data::Project object.
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.