@ecoaloha/sdk
v0.1.1
Published
Official EcoAloha JavaScript SDK and CLI
Readme
EcoAloha JavaScript SDK and CLI
Official source: https://github.com/ArneFfm/ecoaloha-agents. API documentation: https://ecoaloha.com/developers. Node.js 20 or later is required.
Run npm install @ecoaloha/sdk in your integration project.
From a checkout, you can also run npm install ./packages/sdk-js.
import { EcoAloha } from "@ecoaloha/sdk";
const client = new EcoAloha({ baseUrl: "https://ecoaloha.com/api/sandbox/v1" });
console.log(await client.experiences({ destinationId: "paris" }));Run node packages/sdk-js/cli.js --sandbox destinations from the repository root.
Run ecoaloha --help after package installation.
The client returns the complete response envelope, including nextCursor.
Use request(path, options) for other documented operations.
Errors expose status, body, and retryAfter. The client does not retry writes.
No key is required. Respect rate limits and affiliate disclosure rules.
