Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.83 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.83 KB

DNAnexus Javascript Libraries

The DNAnexus Javascript Libraries are a collection of libraries that make it easy to integrate your javascript application with the DNAnexus platform. The complex functionality that is required to upload large files efficiently is available in only a few lines of code.

Making a request

var api = new DX.Api("AUTH_TOKEN_GOES_HERE");
api.call("user-bob", "describe").done(function(userData) {
  alert("user-bob's full name is " + [userData.first, userData.last].join(" "));
});

Dependencies

The various libraries provided have different dependencies. All DNAnexus Javascript libraries rely on jQuery's Deferred object, as promises are not yet standardized across all common browsers. See the libraries below for the exact dependencies.

Libraries / Docs

  • API - Basic javascript bindings for making API calls
  • Upload - Adds ability to upload files to the platform

Examples

The examples below are intended to demonstrate how to use the libraries. The examples were built quickly and are not meant to demonstrate how to properly build a web application/component.