0.2.6 • Published 9 months ago

promofire-js-sdk v0.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Installation

npm install promofire-js-sdk

Setup

import { Promofire } from 'promofire-js-sdk';

const customerData = {
  platform: 'YOUR_PLATFORM',
  device: 'YOUR_DEVICE',
  os: 'OS',
  appBuild: 'APP_BUILD',
  appVersion: 'APP_VERSION',
  sdkVersion: 'SDK_VERSION',
  tenantAssignedId: 'TENANT_ASSIGNED_ID', // optional parameter
  firstName: 'FIRST_NAME', // optional parameter
  lastName: 'LAST_NAME', // optional parameter
  email: 'YOUR_EMAIL', // optional parameter
  phone: 'YOUR_PHONE' // optional parameter
}

const promofire = new Promofire('YOUR_TENANT', 'YOUR_SECRET')
const sdk = promofire.identify(customerData);

Methods

  • create template
  • update template
  • get templates list
  • get templates by id

  • get codes

  • get one code by value
  • create one code
  • create batch code
  • update code
  • redeem code
  • get codes by template id
  • get my redeemed codes
  • get code redeemes owned by me
  • get code redeemes redeemed by customer

  • identify customer (upsert customer preset)

  • delete customer
0.2.6

9 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.5

9 months ago

0.2.4

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago