Skip to main content

Netzo SDK

A JavaScript/TypeScript SDK for interacting with resources in Netzo and with the Netzo API.

Documentation

Refer to the Netzo documentation for more details.

Usage

import { Netzo } from "https://deno.land/x/netzo/mod.ts";

const netzo = Netzo({ apiKey: NETZO_API_KEY });

// create client for existing resource:
const { client } = await netzo.resource(RESOURCE_ID);
const users = await client.users.get();

// create client for a custom HTTP resource:
const { client } = netzo.resource({
  baseURL: "https://jsonplaceholder.typicode.com",
});
const users = await client.users.get();

// api: an authenticated client for the Netzo API
const projects = await netzo.api.projects.get();

License

Copyright (c) 2023 Netzo

Licensed under the MIT license.