0.2.2 • Published 10 years ago

pebble-api v0.2.2

Weekly downloads
14
License
MIT
Repository
github
Last release
10 years ago

pebble-api-node

A Node API library for the Pebble timeline API.

Build Status Coverage Status npm

var Timeline = require('pebble-api').Timeline;

var timeline = new Timeline();

var userToken = '831ac9f096134d8f841b63bb5e80bda3';

var pin = new Timeline.Pin({
  id: 'test-pin-5245',
  time: new Date(),
  duration: 10,
  layout: new Timeline.Pin.Layout({
    type: Timeline.Pin.LayoutType.GENERIC_PIN,
    tinyIcon: Timeline.Pin.Icon.NOTIFICATION_FLAG,
    title: 'Pin Title'
  })
});

timeline.sendUserPin(userToken, pin, function (err) {
  if (err) {
    return console.error(err);
  }

  console.log('Pin sent successfully!');
});

Installation

npm install pebble-api --save

Examples

We have some example apps to demonstrate different uses of the library. You can find them in the examples folder.

Development

Running Tests

  • make test runs tests
  • make test-cov runs tests + test coverage
  • make open-cov opens test coverage results in your browser

Sponsored by

Pebble Technology!

License

MIT

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.5

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