0.1.14 • Published 2 years ago
hypothesis-api-client v0.1.14
hypothesis-api-client
A Hypothes.is API client for browser and server-side
Installation
$ npm install --save hypothesis-api-client
Usage
const HypothesisClient = require('hypothesis-api-client');
let hypothesisClient = new HypothesisClient(TOKEN);
hypothesisClient.searchAnnotations({url: 'https://hypothes.is'}, (err, annotations) => {
console.log(annotations)
})
Methods
The client currently supports the following methods. JSDoc can be found here.
Annotations
- createNewAnnotation(annotation, callback)
- createNewAnnotations(annotationsArray, callback)
- fetchAnnotation(id, callback)
- updateAnnotation(id, annotation, callback)
- deleteAnnotation(id, callback)
- deleteAnnotations(annotationsArray, callback)
- searchAnnotations(data, callback): Search up to 10K bulk annotations in parallel (faster). Maybe it will be deprecated.
- searchBunchAnnotations(data, offset, callback): Search a bunch (up to 200) of annotations giving an offset (up to 9.8K)
- searchAnnotationsSequential: Search over 10K bulk annotations sequentially (slower).
Groups
- getListOfGroups(data, callback)
- removeAMemberFromAGroup(groupId, user, callback)
- createHypothesisGroup(data, callback)
Users
- getUserProfile(callback)
License
MIT © Haritz Medina
0.1.14
2 years ago
0.1.13
3 years ago
0.1.11
3 years ago
0.1.12
3 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago