The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::PivotalTracker - Perl library for the Pivotal Tracker REST API

VERSION

version 0.10

SYNOPSIS

my $pt =  WebService::PivotalTracker->new(
    token => '...',
);
my $story = $pt->story( story_id => 1234 );
my $me = $pt->me;

for my $label ( $story->labels ) { }

for my $comment ( $story->comments ) { }

DESCRIPTION

This is fairly alpha software. The API is likely to change in breaking ways in the future.

This module provides a Perl interface to the REST API V5 for Pivotal Tracker. You will need to refer to the REST API docs for some details, as this documentation does not reproduce the details of every attribute available for a resource.

This class, WebService::PivotalTracker, provides the main entry point for all API calls.

METHODS

All web requests which return anything other than a success status result in a call to die with a simple string error message. This will probably change to something more useful in the future.

This class provides the following methods:

WebService::PivotalTracker->new(...)

This creates a new object of this class. It accepts the following arguments:

$pt->projects

This method returns an array reference of WebService::PivotalTracker::Project objects, one for each project to which the token provides access.

$pt->project_stories_where(...)

This method accepts the following arguments:

$pt->story(...)

This method returns a single WebService::PivotalTracker::Story object, if one exists for the given id.

This method accepts the following arguments:

$pt->create_story(...)

This creates a new story. This method accepts every attribute of a WebService::PivotalTracker::Story object. The project_id and name parameters are required.

It also accepts two additional optional parameters:

By default the story will be added as the last story in the icebox.

$pt->me

This returns a WebService::PivotalTracker::Me object for the user to which the token belongs.

SUPPORT

Bugs may be submitted through https://github.com/maxmind/WebService-PivotalTracker/issues.

AUTHOR

Dave Rolsky autarch@urth.org

CONTRIBUTORS

COPYRIGHT AND LICENSE

This software is Copyright (c) 2018 by MaxMind, Inc.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)