0.0.18 • Published 7 years ago

whatsit-sdk-js v0.0.18

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

whatsit-sdk-js

npm version

whatsit-sdk-js provides a minimal higher-level wrapper around WhatsIt's API.

Usage

/*
   Data can be retrieved from the API either using callbacks (as in versions < 1.0)
   or using a new promise-based API. The promise-based API returns the raw Axios
   request promise.
 */
var WhatsIt = require('whatsit-sdk-js');

const aw = new WhatsIt();
let project = aw.Project(); 
let projectId = 'xxxxx'
project.getProject( projectId)
    .then(project => {
      // Promise !
      // Do something
      })

API Documentation

https://whatsit.github.io/whatsit-sdk-js/

Installation

WhatsIt.js is available from npm or unpkg.

npm install whatsit-api
<!-- just whatsit-api source (5.3kb) -->
<script src="https://unpkg.com/whatsit-api/dist/WhatsIt.min.js"></script>

<!-- standalone (20.3kb) -->
<script src="https://unpkg.com/whatsit-api/dist/WhatsIt.bundle.min.js"></script>

Compatibility

WhatsIt.js is tested on Node.js:

  • 6.x

Note: WhatsIt.js uses Promise, hence it will not work in Node.js < 4 without polyfill.

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago