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

apptentive-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apptentive-sdk

JavaScript library for interacting with Apptentive.

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Apptentive JavaScript SDK

Use Apptentive on the be.apptentive.com website.

Usage

# Setup
apptentive_api_token = '1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'
apptentiveSDK = new ApptentiveSDK(apptentive_api_token)

# Create a conversation with a person object:
apptentiveSDK.createConversation({ name: 'Matthew Callis', email: 'matthew@apptentive.com' })

# Send Apptentive Events
apptentiveSDK.createEvent('app.launch')

# Create a Message
apptentiveSDK.createMessage({
  message: {
    type: 'TextMessage',
    nonce: '1234567890matthew2',
    body: 'I would like more cats.',
    hidden: false,
    custom_data: {},
    client_created_at: Date.now(),
    client_created_at_utc_offset: 0
  }
})

Testing

npm run lint
npm run make
npm run instrument
npm test
npm run test-phantomjs
npm run coverage-report
npm run make-dist
npm run make-dist-min
# or
npm run make && npm run instrument && npm test && npm run test-phantomjs && npm run coverage-report && npm run make-dist && npm run make-dist-min

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Keywords

FAQs

Package last updated on 29 Mar 2016

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