Apptentive JavaScript SDK
Use Apptentive on the be.apptentive.com website.
Usage
# Setup apptentive_api_token = '1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'apptentiveSDK = apptentive_api_token # Create a conversation with a person object: apptentiveSDKcreateConversation name: 'Matthew Callis'email: 'matthew@apptentive.com' # Send Apptentive Events apptentiveSDKcreateEvent'app.launch' # Create a Message apptentiveSDKcreateMessage message: type: 'TextMessage' nonce: '1234567890matthew2' body: 'I would like more cats.' hidden: false custom_data: client_created_at: Datenow client_created_at_utc_offset: 0
Testing
npm run lintnpm run makenpm run instrumentnpm testnpm run test-phantomjsnpm run coverage-reportnpm run make-distnpm 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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request