New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rejoiner

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rejoiner

Rejoiner REST API client wrapper for Node.js

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

Rejoiner Node.js client wrapper

Install

yarn add rejoiner

or

npm install rejoiner --save

Use

var Rejoiner = require('rejoiner')

var apiClient = new Rejoiner({
  siteId: '527bcca942bd247ca1816847',
  domain: '173.203.96.102',
  apiKey: '63cab4a5e1c44fcbbe260daa3f0bc55d',
  apiSecret: 'cb015c09a3b54688a247470b462082b3',
})

Endpoints

Convert Lead

apiClient.lead.convert({
  email: 'foo2@bar.com',
  cart_data: {
    cart_value: 79996,
    cart_item_count: 2,
  },
  cart_items: [{
    'name': 'Item Name',
    'product_id': 'ITM1',
    'price': 19999,
    'product_url': 'http://yoursite.com/productpage',
    'category': ['televisions', 'smart_tv'],
    'item_qty': 2,
    'qty_price': 39998,
    'image_url': 'http://yoursite.com/path/to/image.jpg'
  }, {
    'name': 'Item Name2',
    'product_id': 'ITM2',
    'price': 19999,
    'product_url': 'http://yoursite.com/productpage2',
    'category': ['televisions'],
    'item_qty': 2,
    'qty_price': 39998,
    'image_url': 'http://yoursite.com/path/to/image2.jpg'
  }],
})
  .then(...)
  .catch(...)

Cancellation

apiClient.lead.cancel('foo@bar.com')
  .then(...)
  .catch(...)

Adding Contact to List

apiClient.contact.add({
  email: 'foo@bar.com',
  list_id: '5706374ae6ec520d3370e368',
  first_name: 'Tom',
})
  .then(...)
  .catch(...)

Unsubscribe Contact

apiClient.lead.unsubscribe('foo@bar.com')
  .then(...)
  .catch(...)

Retrieve Lists

apiClient.lists.get()
  .then(...)
  .catch(...)

Record Contact Opt In

apiClient.lead.optIn('foo@bar.com')
  .then(...)
  .catch(...)

Keywords

FAQs

Package last updated on 25 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc