Javascript client library
Getting Started
To make it easy to build your Duffel integration, we offer a JavaScript client library.
Installation
To install the library using your favourite package manager:
yarn add @duffel/api
Usage
Then import it into your codebase and initialise it with your access token:
import { Duffel } from '@duffel/api'const duffel = new Duffel({token: YOUR_ACCESS_TOKEN,})
View the repository on GitHub and check out the npm package:
duffelhq/duffel-api-javascript
The JavaScript client library for the Duffel API on GitHub
@duffel/api
JavaScript client library for the Duffel API