@ministryofjustice/fb-user-datastore-client-node

Form Builder User Data Store Client (for Node)

This package will not receive ongoing development
Last updated 6 months ago by form-builder-team .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ministryofjustice/fb-user-datastore-client-node 
SYNC missed versions from official npm registry.

Form Builder User Data Store client (Node)

Client for making requests to Form Builder platform user datastore endpoints

Requirements

Node

Installation

npm install @ministryofjustice/fb-user-datastore-client-node

Usage

Loading and initialising

// load client
const FBUserDataStoreClient = require('@ministryofjustice/fb-user-datastore-client-node')

// initialise client
const userDataStoreClient = new FBUserDataStoreClient(serviceSecret, serviceToken, serviceSlug, userDataStoreUrl)

Fetching and storing

// fetch user data
const userData = await userDataStoreClient.getData(userId, userToken)

// store user data
await userDataStoreClient.setData(userId, userToken, userData)

Current Tags

  • 0.0.34                                ...           latest (6 months ago)

29 Versions

  • 0.0.34 [deprecated]           ...           6 months ago
  • 0.0.33 [deprecated]           ...           6 months ago
  • 0.0.32 [deprecated]           ...           6 months ago
  • 0.0.30 [deprecated]           ...           6 months ago
  • 0.0.29 [deprecated]           ...           7 months ago
  • 0.0.28 [deprecated]           ...           7 months ago
  • 0.0.27 [deprecated]           ...           a year ago
  • 0.0.26 [deprecated]           ...           a year ago
  • 0.0.25 [deprecated]           ...           a year ago
  • 0.0.23-c                                ...           a year ago
  • 0.0.23-b                                ...           a year ago
  • 0.0.23-a                                ...           a year ago
  • 0.0.23-3                                ...           a year ago
  • 0.0.23-2                                ...           a year ago
  • 0.0.23-1                                ...           a year ago
  • 0.0.24 [deprecated]           ...           a year ago
  • 0.0.23 [deprecated]           ...           a year ago
  • 0.0.22 [deprecated]           ...           a year ago
  • 0.0.19 [deprecated]           ...           a year ago
  • 0.0.18 [deprecated]           ...           a year ago
  • 0.0.17 [deprecated]           ...           a year ago
  • 0.0.16 [deprecated]           ...           a year ago
  • 0.0.10-alpha                                ...           a year ago
  • 0.0.9-alpha                                ...           2 years ago
  • 0.0.8-alpha                                ...           2 years ago
  • 0.0.6-alpha                                ...           2 years ago
  • 0.0.3-alpha                                ...           2 years ago
  • 0.0.2-alpha                                ...           2 years ago
  • 0.0.1-alpha                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |