0.0.9 • Published 8 months ago

synapse-node-api v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

synapse-node-api

This is an unofficial API client for Sage Bionetwork's Synapse service. It is extremely limited in scope currently. Help is welcome to incrementally expand it.

Usage

Prerequisites

You must have a Synapse account and have created a Personal Access Token (PAT). It is recommended that you place this in a .env file to keep this secure.

Installation

npm install synapse-node-api

Initialization

import SynapseClient from 'synapse-node-api';

const synapse = new SynapseClient(<YOUR_PAT>);

// Example: getting all subdirectories of an entity
synapse.entity.children({parentId: 'syn123456', includeTypes: ['folder']})

Supported Endpoints

  • Entity:
    • List Children
    • Get Child
  • File:
    • Read contents
  • Search
0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago