Socket
Socket
Sign inDemoInstall

fullstory

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fullstory

FullStory SDK for API version 1


Version published
Weekly downloads
2.1K
decreased by-5.74%
Maintainers
1
Weekly downloads
 
Created
Source

FullStory

The FullStory SDK for API version 1 supporting both Promise and Callback styles.

NPM

Official home on NPM: https://www.npmjs.com/package/fullstory

Github

Official home on Github: https://github.com/eenewbsauce/fullstory

Setup

  1. Install the module

npm i fullstory

  1. Add environment variable for authentication (optional)

    export FULLSTORY_TOKEN={YOUR_TOKEN}

    or set in .bashrc, .bash_profile, etc...

  2. Require the library

    let fullStory = require('fullstory');

  3. Query the FullStory API

    • All parameters shown in [ ] are optional

    • If uid and email supplied, then API with return union of the two collections

    As Callback

    let fsParams = {
      uid: number,
      email: string
      limit: number
    }

   fullStory.getSessions(fsParams[,token][,(err, sessions) => {
    console.log(sessions) // [{UserId:123, SessionId: 456, CreatedTime: 1476470464, FsUrl: https://www.fullstory.com...}]
   }])

As Promise

    fullStory.getSessions(fsParams[,token])
      .then(sessions => {
        let sessions = sessions;
      })
      .catch(err => {
        //handle err
      })

Tests

e2e

Fetch sessions for a client by uid

npm run test-e2e {your_client_uid}

Fetch sessions for a client by email

npm run test-e2e {your_client_email}

Fetch union of sessions for a client with uid and email

npm run test-e2e {your_client_uid} {your_client_email}

Unit Tests

npm test

Official FullStory API Docs

http://help.fullstory.com/11269-Develop

Keywords

FAQs

Package last updated on 16 Oct 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