0.43.1 • Published 8 months ago

zotero-api-client v0.43.1

Weekly downloads
36
License
AGPL-3.0
Repository
github
Last release
8 months ago

Build Status Coverage Status npm version

Zotero API client

A lightweight, minimalistic Zotero API client developed in JavaScript with the following goals in mind:

  • Small, single purpose module, i.e. talk to the API
  • Works in both node & browser environment
  • No abstraction over Zotero data, what you see is what you get
  • Clean api
  • Small bundle footprint
  • Minimal request validation
  • Predictable and consistent responses
  • Full test coverage

It doesn't do any of the following:

  • Version management - version headers need to be provided explictely
  • Caching - each call to get(), post() etc. will actually call the api
  • Abstraction - There is no Item or Collection objects, only raw JSON

Getting The Library

NPM package contains source of the library which can be used as part of your build (e.g. when using browserify/rollup/webpack etc.) process or directly in node:

npm install zotero-api-client

Also included in the package is an UMD bundle which can be loaded using common loaders or included directly in a <script> tag. In the latter case library will be available as a global scope object ZoteroApiClient. One way of using UMD bundle on your page is to include it from unpkg project CDN:

<script src="https://unpkg.com/zotero-api-client"></script>

Example

Simple example reading items from the public/test user library.

  1. Import the library, pick one depending on your environment:
// es module, most scenarios when using a bundler:
import api from 'zotero-api-client'
// common-js, node and some cases when using a bundler:
const { default: api } = require('zotero-api-client');
// UMD bundle creates `ZoteroApiClient` global object
const { default: api } = ZoteroApiClient;
  1. Use the api to make the request (we're using async functions)
const response = await api().library('user', 475425).collections('9KH9TNSJ').items().get();
  1. Extract items from the response
const items = response.getData();
  1. Print titles of all the items in the library to console
console.log(items.map(i => i.title));

Overview

Library composes of three layers:

  • An api function, which is the only interface exported.
  • A request engine called by the api. It does the heavy lifting. Should not be used directly.
  • An ApiResponse, which has multiple specialised variants

API interface

API interface is a function that returns set of functions bound to previously configured options. This way it can be chained and stored at any level. Common scenario is to store authentication details and library details, which can be done quite simply:

import api from 'zotero-api-client';
const myapi = api('AUTH_KEY').library('user', 0);

That produces api client already configured with your credentials and user library id. You can re-use it obtain list of collections in that library:

const itemsResponse = await myapi.items().get();

Items in that library:

const itemsResponse = await myapi.collections().get();

Or items in specific collection:

const collectionItemsResponse = await myapi.collections('EXAMPLE1').items().get();

There two types of api functions, configuration functions (e.g. items()) that can be further chained and execution functions (e.g. get()) that fire up the request.

For complete reference, please see documentation for api().

Response

Response is an instance of a specialised response class object returned by one of the execution functions of the api. Each response contains a specialised getData() method that will return entities requested or modified, depending on request configuration.

For complete reference, please see documentation SingleReadResponse, MultiReadResponse, SingleWriteResponse, MultiWriteResponse, DeleteResponse, FileUploadResponse, FileDownloadResponse, FileUrlResponse.

Request

Request is a function that takes a complex configuration object generated by the api interface, communicates with the API and returns one of the response objects (see below). Some rarely used properties cannot be configured using api configuration functions and have to be specified as optional properties when calling api() or one of the execution functions of the api.

For a complete list of all the properties request() accepts, please see documentation for request().

API Reference

zotero-api-client~ApiResponse

Represents a generic Zotero API response. Usually a specialised variant inheriting from this class is returned when doing an API request

Kind: inner class of zotero-api-client

apiResponse.getResponseType() ⇒ string

Name of the class, useful to determine instance of which specialised class has been returned

Kind: instance method of ApiResponse
Returns: string - name of the class

apiResponse.getData() ⇒ object

Content of the response. Specialised classes provide extracted data depending on context.

Kind: instance method of ApiResponse

apiResponse.getLinks() ⇒ object

Links available in the response. Specialised classes provide extracted links depending on context.

Kind: instance method of ApiResponse

apiResponse.getMeta() ⇒ object

Meta data available in the response. Specialised classes provide extracted meta data depending on context.

Kind: instance method of ApiResponse

apiResponse.getVersion() ⇒ number

Contents of "Last-Modified-Version" header in response if present. Specialised classes provide version depending on context

Kind: instance method of ApiResponse
Returns: number - Version of the content in response

zotero-api-client~SingleReadResponse ⇐ ApiResponse

Represents a response to a GET request containing a single entity

Kind: inner class of zotero-api-client
Extends: ApiResponse

singleReadResponse.getResponseType()

Kind: instance method of SingleReadResponse
See: getResponseType

singleReadResponse.getData() ⇒ Object

Kind: instance method of SingleReadResponse
Returns: Object - entity returned in this response

zotero-api-client~MultiReadResponse ⇐ ApiResponse

represnets a response to a GET request containing multiple entities

Kind: inner class of zotero-api-client
Extends: ApiResponse

multiReadResponse.getResponseType()

Kind: instance method of MultiReadResponse
See: getResponseType

multiReadResponse.getData() ⇒ Array

Kind: instance method of MultiReadResponse
Returns: Array - a list of entities returned in this response

multiReadResponse.getLinks() ⇒ Array

Kind: instance method of MultiReadResponse
Returns: Array - a list of links, indexes of the array match indexes of entities in getData

multiReadResponse.getMeta() ⇒ Array

Kind: instance method of MultiReadResponse
Returns: Array - a list of meta data, indexes of the array match indexes of entities in getData

multiReadResponse.getTotalResults() ⇒ string

Kind: instance method of MultiReadResponse
Returns: string - Total number of results

multiReadResponse.getRelLinks() ⇒ object

Kind: instance method of MultiReadResponse
Returns: object - Parsed content of "Link" header as object where value of "rel" is a key and the URL is the value, contains values for "next", "last" etc.

zotero-api-client~SingleWriteResponse ⇐ ApiResponse

Represents a response to a PUT or PATCH request

Kind: inner class of zotero-api-client
Extends: ApiResponse

singleWriteResponse.getResponseType()

Kind: instance method of SingleWriteResponse
See: getResponseType

singleWriteResponse.getData() ⇒ Object

Kind: instance method of SingleWriteResponse
Returns: Object - For put requests, this represents a complete, updated object. For patch requests, this reprents only updated fields of the updated object.

zotero-api-client~MultiWriteResponse ⇐ ApiResponse

Represents a response to a POST request

Kind: inner class of zotero-api-client
Extends: ApiResponse

multiWriteResponse.getResponseType()

Kind: instance method of MultiWriteResponse
See: getResponseType

multiWriteResponse.isSuccess() ⇒ Boolean

Kind: instance method of MultiWriteResponse
Returns: Boolean - Indicates whether all write operations were successful

multiWriteResponse.getData() ⇒ Array

Returns all entities POSTed in an array. Entities that have been written successfully are returned updated, other entities are returned unchanged. It is advised to verify if request was entirely successful (see isSuccess and getError) before using this method.

Kind: instance method of MultiWriteResponse
Returns: Array - A modified list of all entities posted.

multiWriteResponse.getLinks()

Kind: instance method of MultiWriteResponse
See: getLinks

multiWriteResponse.getMeta()

Kind: instance method of MultiWriteResponse
See: getMeta

multiWriteResponse.getErrors() ⇒ Object

Returns all errors that have occurred.

Kind: instance method of MultiWriteResponse
Returns: Object - Errors object where keys are indexes of the array of the original request and values are the erorrs occurred.

multiWriteResponse.getEntityByKey(key)

Allows obtaining updated entity based on its key, otherwise identical to getEntityByIndex

Kind: instance method of MultiWriteResponse
Throws:

  • Error If key is not present in the request

See: module:zotero-api-client.getEntityByIndex

ParamType
keyString

multiWriteResponse.getEntityByIndex(index) ⇒ Object

Allows obtaining updated entity based on its index in the original request

Kind: instance method of MultiWriteResponse
Throws:

  • Error If index is not present in the original request
  • Error If error occured in the POST for selected entity. Error message will contain reason for failure.
ParamType
indexNumber

zotero-api-client~DeleteResponse ⇐ ApiResponse

Represents a response to a DELETE request

Kind: inner class of zotero-api-client
Extends: ApiResponse

deleteResponse.getResponseType()

Kind: instance method of DeleteResponse
See: getResponseType

zotero-api-client~FileUploadResponse ⇐ ApiResponse

Represents a response to a file upload request

Kind: inner class of zotero-api-client
Extends: ApiResponse
Properties

NameTypeDescription
authResponseObjectResponse object for the stage 1 (upload authorisation) request
responseObjectalias for "authResponse"
uploadResponseObjectResponse object for the stage 2 (file upload) request
registerResponseObjextResponse object for the stage 3 (upload registration) request

fileUploadResponse.getResponseType()

Kind: instance method of FileUploadResponse
See: getResponseType

fileUploadResponse.getVersion()

Kind: instance method of FileUploadResponse
See: getVersion

zotero-api-client~FileDownloadResponse ⇐ ApiResponse

Represents a response to a file download request

Kind: inner class of zotero-api-client
Extends: ApiResponse

fileDownloadResponse.getResponseType()

Kind: instance method of FileDownloadResponse
See: getResponseType

zotero-api-client~FileUrlResponse ⇐ ApiResponse

Represents a response containing temporary url for file download

Kind: inner class of zotero-api-client
Extends: ApiResponse

fileUrlResponse.getResponseType()

Kind: instance method of FileUrlResponse
See: getResponseType

zotero-api-client~RawApiResponse ⇐ ApiResponse

Represents a raw response, e.g. to data requests with format other than json

Kind: inner class of zotero-api-client
Extends: ApiResponse

rawApiResponse.getResponseType()

Kind: instance method of RawApiResponse
See: getResponseType

zotero-api-client~PretendResponse ⇐ ApiResponse

Represents a response for pretended request, mostly for debug purposes. See module:zotero-api-client.api~pretend

Kind: inner class of zotero-api-client
Extends: ApiResponse

pretendResponse.getResponseType()

Kind: instance method of PretendResponse
See: getResponseType

pretendResponse.getVersion() ⇒ Object

Kind: instance method of PretendResponse
Returns: Object - For pretended request version will always be null.

zotero-api-client~ErrorResponse ⇐ Error

Represents an error response from the api

Kind: inner class of zotero-api-client
Extends: Error
Properties

NameTypeDescription
responseObjectResponse object for the request, with untouched body
messageStringWhat error occurred, ususally contains response code and status
reasonStringMore detailed reason for the failure, if provided by the API
optionsStringConfiguration object used for this request

errorResponse.getResponseType()

Kind: instance method of ErrorResponse
See: getResponseType

zotero-api-client~api() ⇒ Object

Wrapper function creates closure scope and calls api()

Kind: inner method of zotero-api-client
Returns: Object - Partially configured api functions

api~api(key, opts) ⇒ Object

Entry point of the interface. Configures authentication. Can be used to configure any other properties of the api Returns a set of function that are bound to that configuration and can be called to specify further api configuration.

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
keyStringAuthentication key
optsObjectOptional api configuration. For a list of all possible properties, see documentation for request() function

api~library(typeOrKey, id) ⇒ Object

Configures which library api requests should use.

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
typeOrKey*Library key, e.g. g1234. Alternatively, if second parameter is present, library type i.e either 'group' or 'user'
idNumberOnly when first argument is a type, library id

api~items(items) ⇒ Object

Configures api to use items or a specific item Can be used in conjuction with library(), collections(), top(), trash(), children(), tags() and any execution function (e.g. get(), post())

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDefaultDescription
itemsStringItem key, if present, configure api to point at this specific item

api~itemTypes() ⇒ Object

Configure api to request all item types Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~itemFields() ⇒ Object

Configure api to request all item fields Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~creatorFields() ⇒ Object

Configure api to request localized creator fields Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~schema() ⇒ Object

Configure api to request schema Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~itemTypeFields(itemType) ⇒ Object

Configure api to request all valid fields for an item type Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
itemTypeStringitem type for which valid fields will be requested, e.g. 'book' or 'journalType'

api~itemTypeCreatorTypes(itemType) ⇒ Object

Configure api to request valid creator types for an item type Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
itemTypeStringitem type for which valid creator types will be requested, e.g. 'book' or 'journalType'

api~template(itemType, subType) ⇒ Object

Configure api to request template for a new item Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
itemTypeStringitem type for which template will be requested, e.g. 'book' or 'journalType'
subTypeStringannotationType if itemType is 'annotation' or linkMode if itemType is 'attachment'

api~collections(items) ⇒ Object

Configure api to use collections or a specific collection Can be used in conjuction with library(), items(), top(), tags() and any of the execution function (e.g. get(), post())

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
itemsStringCollection key, if present, configure api to point to this specific collection

api~subcollections() ⇒ Object

Configure api to use subcollections that reside underneath the specified collection. Should only be used in conjuction with both library() and collection() and any of the execution function (e.g. get(), post())

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~publications() ⇒ Object

Configure api to narrow the request to only consider items filled under "My Publications" Should only be used in conjuction with both library() and items() and any of the execution function (e.g. get(), post())

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~tags(tags) ⇒ Object

Configure api to request or delete tags or request a specific tag Can be used in conjuction with library(), items(), collections() and any of the following execution functions: get(), delete() but only if the first argument is not present. Otherwise can only be used in conjuctin with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDefaultDescription
tagsStringname of a tag to request. If preset, configure api to request specific tag.

api~searches(searches) ⇒ Object

Configure api to use saved searches or a specific saved search Can be used in conjuction with library() and any of the execution functions

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDefaultDescription
searchesStringSearch key, if present, configure api to point at this specific saved search

api~top() ⇒ Object

Configure api to narrow the request only to the top level items Can be used in conjuction with items() and collections() and only with conjuction with a get() execution function

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~trash() ⇒ Object

Configure api to narrow the request only to the items in the trash Can be only used in conjuction with items() and get() execution function

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~children() ⇒ Object

Configure api to narrow the request only to the children of given item Can be only used in conjuction with items() and get() execution function

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~settings(settings) ⇒ Object

Configure api to request settings Can only be used in conjuction with get(), put(), post() and delete() For usage with put() and delete() settings key must be provided For usage with post() settings key must not be included

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDefaultDescription
settingsStringSettings key, if present, configure api to point at this specific key within settings, e.g. tagColors.

api~deleted() ⇒ Object

Configure api to request deleted content Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~groups() ⇒ Object

Configure api to request user-accessible groups (i.e. The set of groups the current API key has access to, including public groups the key owner belongs to even if the key doesn't have explicit permissions for them.) Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~version(version) ⇒ Object

Configure api to specify local version of given entity. When used in conjuction with get() exec function, it will populate the If-Modified-Since-Version header. When used in conjuction with post(), put(), patch() or delete() it will populate the If-Unmodified-Since-Version header.

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
versionNumberlocal version of the entity

api~attachment(fileName, file, mtime, md5sum, patch, algorithm) ⇒ Object

Configure api to upload or download an attachment file. Can be only used in conjuction with items() and post()/get()/patch(). Method patch() can only be used to upload a binary patch, in this case last two argument must be provided. Method post() is used for full uploads. If md5sum is provided, it will update existing file, otherwise it uploads a new file. Last two arguments are not used in this scenario. Method get() is used for downloads, in this case skip all arguments. Use items() to select attachment item for which file is uploaded/downloaded. Will populate format on download as well as Content-Type, If*Match headers in case of upload.

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
fileNameStringFor upload: name of the file, should match values in attachment item entry
fileArrayBufferNew file to be uploaded
mtimeNumberNew file's mtime, leave empty to assume current date/time
md5sumStringMD5 hash of an existing file, required for uploads that update existing file
patchArrayBufferBinary patch, to be applied to the old file, to produce a new file
algorithmStringAlgorithm used to compute a diff: xdelta, vcdiff or bsdiff

api~registerAttachment(fileName, fileSize, mtime, md5sum) ⇒ Object

Advanced function that will attempt to register existing file with given attachment-item based on known file metadata. Can be only used in conjuction with items() and post(). Use items() to select attachment item for which file is registered. Will populate Content-Type, If-Match headers. Will fail with a ErrorResponse if API does not return "exists".

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

ParamTypeDescription
fileNameStringname of the file, should match values in attachment item entry
fileSizeNumbersize of the existing file
mtimeNumbermtime of the existing file
md5sumStringmd5sum of the existing file

api~attachmentUrl() ⇒ Object

Configure api to request a temporary attachment file url Can be only used in conjuction with items() and get() Use items() to select attachment item for which file is url is requested Will populate format, redirect

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~verifyKeyAccess() ⇒ Object

Configure api to request information on the API key. Can only be used in conjuction with get()

Kind: inner method of api
Chainable
Returns: Object - Partially configured api functions

api~get(opts) ⇒ Promise

Execution function. Specifies that the request should use a GET method.

Kind: inner method of api
Returns: Promise - A promise that will eventually return either an ApiResponse, SingleReadResponse or MultiReadResponse. Might throw Error or ErrorResponse.

ParamTypeDescription
optsObjectOptional api configuration. If duplicate, overrides properties already present. For a list of all possible properties, see documentation for request() function

api~post(data, opts) ⇒ Promise

Execution function. Specifies that the request should use a POST method.

Kind: inner method of api
Returns: Promise - A promise that will eventually return MultiWriteResponse. Might throw Error or ErrorResponse

ParamTypeDescription
dataArrayAn array of entities to post
optsObjectOptional api configuration. If duplicate, overrides properties already present. For a list of all possible properties, see documentation for request() function

api~put(data, opts) ⇒ Promise

Execution function. Specifies that the request should use a PUT method.

Kind: inner method of api
Returns: Promise - A promise that will eventually return SingleWriteResponse. Might throw Error or ErrorResponse

ParamTypeDescription
dataObjectAn entity to put
optsObjectOptional api configuration. If duplicate, overrides properties already present. For a list of all possible properties, see documentation for request() function

api~patch(data, opts) ⇒ Promise

Execution function. Specifies that the request should use a PATCH method.

Kind: inner method of api
Returns: Promise - A promise that will eventually return SingleWriteResponse. Might throw Error or ErrorResponse

ParamTypeDescription
dataObjectPartial entity data to patch
optsObjectOptional api configuration. If duplicate, overrides properties already present. For a list of all possible properties, see documentation for request() function

api~del(keysToDelete, opts) ⇒ Promise

Execution function. Specifies that the request should use a DELETE method.

Kind: inner method of api
Returns: Promise - A promise that will eventually return DeleteResponse. Might throw Error or ErrorResponse

ParamTypeDescription
keysToDeleteArrayAn array of keys to delete. Depending on how api has been configured, these will be item keys, collection keys, search keys or tag names. If not present, api should be configured to use specific item, collection, saved search or settings key, in which case, that entity will be deleted
optsObjectOptional api configuration. If duplicate, overrides properties already present. For a list of all possible properties, see documentation for request() function

api~getConfig() ⇒ Object

Execution function. Returns current config without doing any requests. Usually used in advanced scenarios where config needs to be tweaked manually before submitted to the request method or as a debugging tool.

Kind: inner method of api
Returns: Object - current config

api~pretend(verb, data, opts) ⇒ Promise

Execution function. Prepares the request but does not execute fetch() instead returning a "pretended" response where details for the actual fetch that would have been used are included. Usually used in advanced scenarios where config needs to be tweaked manually before it is submitted to the request method or as a debugging tool.

Kind: inner method of api
Returns: Promise - A promise that will eventually return PretendResponse. Might throw Error or ErrorResponse

ParamTypeDefaultDescription
verbStringgetDefines which execution function is used to prepare the request. Should be one of 'get', 'post', 'patch' 'put', 'delete'. Defaults to 'get'.
dataObjectThis argument is passed over to the actual execution function. For 'get' it is ignored, for 'post', 'patch' and 'put' see 'data' of that execution function, for 'delete' see 'keysToDelete'
optsObjectOptional api configuration. If duplicate, overrides properties already present. For a list of all possible properties, see documentation for request() function

api~use(extend) ⇒ Object

Used for extending capabilities of the library by installing plugins. In most cases plugins inject additional executors or bind api to an alternative/extended set of functions

Kind: inner method of api
Returns: Object - Extended/partially configured api functions

ParamTypeDescription
extendfunctionfunction that installs alternative or additional functionality of the api. It should return bound api functions, usually by caling arguments0.ef()

zotero-api-client~request() ⇒ Object

Executes request and returns a response. Not meant to be called directly, instead use api.

Kind: inner method of zotero-api-client
Returns: Object - Returns a Promise that will eventually return a response object
Throws:

  • Error If options specify impossible configuration
  • ErrorResponse If API responds with a non-ok response
ParamTypeDescription
options.authorizationString'Authorization' header
options.zoteroWriteTokenString'Zotero-Write-Token' header
options.ifModifiedSinceVersionString'If-Modified-Since-Version' header
options.ifUnmodifiedSinceVersionString'If-Unmodified-Since-Version' header
options.contentTypeString'Content-Type' header
options.collectionKeyString'collectionKey' query argument
options.contentString'content' query argument
options.directionString'direction' query argument
options.formatString'format' query argument
options.includeString'include' query argument
options.includeTrashedString'includeTrashed' query argument
options.itemKeyString'itemKey' query argument
options.itemQString'itemQ' query argument
options.itemQModeString'itemQMode' query argument
options.itemTagString | Array.<String>'itemTag' query argument
options.itemTypeString'itemType' query argument
options.limitNumber'limit' query argument
options.linkModeString'linkMode' query argument
options.localeString'locale' query argument
options.qString'q' query argument
options.qmodeString'qmode' query argument
options.searchKeyString'searchKey' query argument
options.sinceNumber'since' query argument
options.sortString'sort' query argument
options.startNumber'start' query argument
options.styleString'style' query argument
options.tagString | Array.<String>'tag' query argument
options.pretendBooleantriggers pretend mode where fetch request is prepared and returned without execution
options.resource.topStringuse 'top' resource
options.resource.trashStringuse 'trash' resource
options.resource.childrenStringuse 'children' resource
options.resource.groupsStringuse 'groups' resource
options.resource.itemTypesStringuse 'itemTypes' resource
options.resource.itemFieldsStringuse 'itemFields' resource
options.resource.creatorFieldsStringuse 'creatorFields' resource
options.resource.itemTypeFieldsStringuse 'itemTypeFields' resource
options.resource.itemTypeCreatorTypesStringuse 'itemTypeCreatorTypes' resource
options.resource.libraryStringuse 'library' resource
options.resource.collectionsStringuse 'collections' resource
options.resource.itemsStringuse 'items' resource
options.resource.searchesStringuse 'searches' resource
options.resource.tagsStringuse 'tags' resource
options.resource.templateStringuse 'template' resource
options.methodStringforwarded to fetch()
options.bodyStringforwarded to fetch()
options.modeStringforwarded to fetch()
options.cacheStringforwarded to fetch()
options.credentialsStringforwarded to fetch()
options.uploadRegisterOnlyBooleanthis file upload should only perform stage 1 error if file with provided meta does not exist
options.retryNumberretry this many times after transient error.
options.retryDelayNumberwait this many seconds before retry. If not set an exponential backoff algorithm will be used
0.43.0

8 months ago

0.42.0

9 months ago

0.43.1

8 months ago

0.41.1

1 year ago

0.41.0

1 year ago

0.40.1

1 year ago

0.40.0

2 years ago

0.38.0

2 years ago

0.39.0

2 years ago

0.37.2

2 years ago

0.37.1

3 years ago

0.37.0

3 years ago

0.36.0

3 years ago

0.35.0

3 years ago

0.34.2

3 years ago

0.34.1

3 years ago

0.34.0

3 years ago

0.33.0

3 years ago

0.32.1

4 years ago

0.32.0

4 years ago

0.31.0

4 years ago

0.30.0

4 years ago

0.29.1

4 years ago

0.29.0

4 years ago

0.28.0

4 years ago

0.27.0

5 years ago

0.26.0

5 years ago

0.25.0

5 years ago

0.24.0

5 years ago

0.23.1

5 years ago

0.23.0

5 years ago

0.22.1

5 years ago

0.22.0

5 years ago

0.21.2

5 years ago

0.21.1

5 years ago

0.21.0

6 years ago

0.20.0

6 years ago

0.19.0

6 years ago

0.18.1

6 years ago

0.18.0

6 years ago

0.17.0

6 years ago

0.16.0

6 years ago

0.15.0

6 years ago

0.14.3

6 years ago

0.14.2

6 years ago

0.14.1

6 years ago

0.14.0

6 years ago

0.13.0

6 years ago

0.12.0

6 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.10.0

6 years ago

0.9.4

7 years ago

0.9.3

7 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago