0.1.13 • Published 1 year ago
tidepool-seagull-client v0.1.13
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 hakkenconfig-- an object containing configuration parametersrequest-- see amoeba httpClientGenerates an object with the members listed below.
Members
getProfile
getProfile (userId, token, cb)Retrieves the user profile from metadatauserId-- the Tidepool-assigned userIdtoken-- a server token or the user tokencb (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 metadatauserId-- the Tidepool-assigned userIdtoken-- a server token or the user tokencb (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 metadatauserId-- the Tidepool-assigned userIdhashName-- the name of the particular pair value to retrievetoken-- a server token (user token not valid)cb (err, response)err-- null if no error, else an objectresponse-- result from the /metadata/:userid/private api call
getCollection
getCollection (userId, collectionName, token, cb)Retrieves arbitrary collection information from metadatauserId-- the Tidepool-assigned userIdcollectionName-- the collection being retrievedtoken-- a server token or the user tokencb (err, response)err-- null if no error, else an objectresponse-- result from the /metadata/:userid/groups api call
0.1.13
1 year ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.11-alpha.6
2 years ago
0.1.11-alpha.5
2 years ago
0.1.11-alpha.4
2 years ago
0.1.11-alpha.3
2 years ago
0.1.10
2 years ago
0.1.11-alpha.1
2 years ago
0.1.11-alpha.2
2 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
10 years ago
0.1.4
11 years ago
0.1.3
11 years ago
0.1.2
11 years ago
0.1.1
12 years ago
0.1.0
12 years ago
0.0.2
12 years ago