1.0.6 • Published 10 years ago

float-scheduler v1.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

Float Scheduler

A Node module for interacting with Float Scheduler's API.

NPM

Installation

npm install float-scheduler

Usage

var Float = require('float-scheduler');
var float = new Float({token: "my-float-api-token", user_agent: "My App <contact@myapp.com>"});

You must pass in a token and user_agent when constructing a Float object.

You get your token from the Float dashboard (of an administrator).

The user-agent string is for Float to identify who to contact in case of questions or concerns.

You may pass in a debug parameter as well, to get more console output.

If you don't need debug info but do want request logging, pass in a log_requests parameter. API request logs will be of the following format (tokens in angle brackets, all other characters literal):

<YYYY>-<MM>-<DD> <HH>:<MM>:<SS>.<mmmm> [float-scheduler] <HTTP_METHOD> <URL>

Endpoints

Endpoints are each set up to take a parameters object and a callback. Unless otherwise noted, the callback will provide an error object and a data object.

For example, list all People by calling:

float.People.list({}, function(error, response_data) {
    if (error) {
        console.log(error);
        throw new Error(error);
    }
    console.log(response_data);
});

For more detail on specific endpoints and parameters, check out the wiki page.

Other Stuff

  • Implementation mimics that of harvest.
  • Published to npm under the ISC license
  • see Changelog for versioning information.
  • Does your app use this module? Let me know!
  • Problem with this module? Submit an Issue or a Pull Request.
1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago