@swing.xyz/platform-api
v0.9.0Swing 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
- GPL-3.0-or-later
- Whatever
- Chris Lott
- released 8/29/2024