@swing.xyz/platform-api

v0.9.0
- [Developer Docs](https://developers.swing.xyz/) - https://developers.swing.xyz/

Swing Platform API

Getting Started

yarn add @swing.xyz/platform-api

Usage

import { getSwingPlatformAPI } from "@swing.xyz/platform-api";

const swingPlatformAPI = getSwingPlatformAPI({
  /**
   * Optionally configure the Platform API environment.
   * environment: "production",
   *
   * Optionally override the Platform API URL
   * baseUrl: "https://platform.swing.xyz",
   *
   * Optional add default headers
   * headers: {},
   */
});

const projectConfig = swingPlatformAPI.GET("/projects/{projectId}/config", {
  params: {
    path: {
      projectId: "swing-project-identifier",
    },
  },
});
npm i @swing.xyz/platform-api

Metadata

Downloads