Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 717 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 717 Bytes

Opentrons HTTP API Client

Opentrons robot HTTP API client for Node.js and browsers. Compatible with Opentrons robot software v4 and later.

Getting Started

Installation

npm install @opentrons/api-client

Usage

import { HostConfig, Response, Health, getHealth } from '@opentrons/api-client'

const host: HostConfig = { hostname: 'OT2CEP9999999A99.local' }

getHealth(host)
  .then((response: Response<Health>) => console.log(response.data))
  .catch(error => console.error(error))

Details

The @opentrons/api-client module is built using axios.