Skip to content
LabArchives API wrapper for JavaScript
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
README.md
package-lock.json
package.json

README.md

LabArchives API wrapper for JavaScript

Client for LabArchives' API. Uses Axios, which is Promise-based.

This package is currently incomplete as it lacks support for most of the options that LabArchives offers through its API. Feel free to contribute by requesting or implementing the functionalities you'd like to use.

Installation

Available from npm:

npm install labarchives-js

Usage

User's figures retrieval

Retrieve all of a user's image entries and get URLs of thumbnails and attachments.

const LabArchives = require('labarchives-js');
const client = new LabArchives({
    accessKeyId: 'myAkid',
    accessPassword: 'myPassword',
});

async () => {
    await client.login('username', 'password');
    
    let entryID = await client.getFigureEntryIDs()[0];
    
    let thumbnailUrl = await client.getThumbnailUrlOf(entryID);
    let attachmentUrl = await client.getAttachmentUrlOf(entryID);
}

License

This package is open-source software licensed under the MIT license.

You can’t perform that action at this time.