import { Duffel } from '@duffel/api' const duffel = new Duffel({ // Store your access token in an environment variable, keep it secret and only readable on your server token: process.env.DUFFEL_ACCESS_TOKEN, }) // To quickly test whether your integration is working, you can get a single aircraft by its Duffel ID const aircraft = await duffel.aircraft.get('arc_00009VMF8AhXSSRnQDI6Hi') console.log(aircraft)
No posts.
No posts.