1.0.2 • Published 7 years ago

apposition v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Apposition-NodeJS-SDK

Apposition NodeJS SDK is the official SDK wrapper for the Appostion API service

API docs: https://github.com/apposition/api

Requirements

  • NodeJS 0.10+

User Installation

npm install apposition

Initialize Apposition client via:

var AppositionClient = require('apposition');
var client = new AppositionClient('<App ID>', '<App secret>');

Report install / uninstall event

var shop_url = 'happy-customers.myshopify.com';
var status = 'installed'; // or 'uninstalled'
// UTC timestamp in ms when install / uninstall occurred, default should be current timestamp
var timestamp = new Date().getTime();
client.reportAppShopStatus(shop_url, status, timestamp, function (savedEvent) {
    console.log(savedEvent);
});

If you have questions, email us at help@apposition.io.

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

7.0.0

10 years ago