generalui/pivotaltracker

projects.all() returns "Invalid project ID"

Closed this issue · 3 comments

When using the projects endpoint, like the first example in the readme, an error is returned instead of the list of projects:

var tracker = require('pivotaltracker');
var client = new tracker.Client('mytoken');
client.projects.all(console.log);

Expected: list of projects sent to log

Actual: an error [Error: Invalid project ID] null is returned

Are you really using projects() as the title suggests? If so, that's neither the documented nor the intended behavior. :) The syntax for what you want is projects.all().

If you are actually using projects.all() on the other hand, then yeah, that's a thing. :(

Sorry I don't understand. It looks like you are saying the syntax I need is projects.all() but I thought I was using that exact syntax via client.projects.all().

I'm not using it in production code. With only this module, how could you get the project ids given only a tracker token?

Fixed with c3396a5