This project aims to provide a simple node/in-browser (via browserify) API client for fetching items across multiple products inside sprintly.
You can find documentation for the search API here.
var API = require('sprintly-search');
// NOTE: 5304 is a user-id. You may need to change this for this
// example to work.
API.search(API.getOptions('assigned_to:5304', {
user: '[email protected]',
pass: 's3cr3t'
})).then(function (json) {
console.log('Number of items? ', JSON.stringify(json).length);
}, function (err) {
console.log('error: ', err.response.body);
});
Your username is the email you use to login to sprintly with. The password is your API key, which can be found on your profile.