Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node and PivotalTracker
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tests
.gitignore
README.md
config.json
index.js
package.json

README.md

PivotalNode

Easy and simple way of communication between pivotaltracker with nodeJS

pivotalnode.getToken({username: 'o3704923@rtrtr.com', password: 'taquitos'}, function(error, PToken){

  pivotalnode.getProject(function(error, projects){
   // We have all the projects !!
  });

});

Tests

Run tests

node tests/pivotalnode.js

Get a token

pivotalnode.getToken({username: 'o3704923@rtrtr.com', password: 'taquitos'}, function(error, PToken){
  //error: if something went wrong
  //PToken: PivotalTracker api response
});

Activity Feed

All activity

pivotalnode.activityFeed( [{ params }] , function(error, result){
  // ...
});

Project activity

pivotalnode.activityFeed({project: :ID, [{ params }] }, function(error, result){
  // ...
});

Parameters

  • limit: you can limit the number of activity feed items to a desired number. Note the default value is 10, and there is a upper cap of 100
  • occurred_since_date: allows restricting the activity feed to only those items that occurred after a supplied date (example format: 2009/12/18 21:00:00 UTC)
  • newer_than_version: allows restricting the activity feed to only those items that have a greater than supplied version

Example:

pivotalnode.activityFeed({ project: 1234, limit: 50 }, function(error, result){
  // ...
});

Get Projects

All my projects

pivotalnode.getProject(function(error, result){
  //..
});

Get a single project

pivotalnode.getProject({ project: :ID }, function(error, result){
  //..
});
Something went wrong with that request. Please try again.