0.1.12 • Published 1 month ago

tidepool-seagull-client v0.1.12

Weekly downloads
34
License
BSD-2-Clause
Repository
github
Last release
1 month ago

seagull-client

Client library for interacting with seagull, Tidepool's user metadata service

Docs

Setup

require('seagull-client')(config, hostGetter, request);

  • hostGetter -- an object from hakken
  • config -- an object containing configuration parameters
  • request -- see amoeba httpClient

    Generates an object with the members listed below.

Members

getProfile

  • getProfile (userId, token, cb) Retrieves the user profile from metadata userId -- the Tidepool-assigned userId token -- a server token or the user token cb (err, response) err -- null if no error, else an object * response -- result from the /metadata/:userid/profile api call

getGroups

  • getGroups (userId, token, cb) Retrieves the user group information from metadata userId -- the Tidepool-assigned userId token -- a server token or the user token cb (err, response) err -- null if no error, else an object * response -- result from the /metadata/:userid/groups api call

getPrivatePair

  • getPrivatePair (userId, hashName, token, cb) Gets a private pair from metadata userId -- the Tidepool-assigned userId hashName -- the name of the particular pair value to retrieve token -- a server token (user token not valid) cb (err, response) err -- null if no error, else an object response -- result from the /metadata/:userid/private api call

getCollection

  • getCollection (userId, collectionName, token, cb) Retrieves arbitrary collection information from metadata userId -- the Tidepool-assigned userId collectionName -- the collection being retrieved token -- a server token or the user token cb (err, response) err -- null if no error, else an object response -- result from the /metadata/:userid/groups api call
0.1.12

1 month ago

0.1.11

2 months ago

0.1.11-alpha.6

2 months ago

0.1.11-alpha.5

2 months ago

0.1.11-alpha.4

4 months ago

0.1.11-alpha.3

5 months ago

0.1.10

7 months ago

0.1.11-alpha.1

7 months ago

0.1.11-alpha.2

6 months ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago