@flywheel-io/sdk
v0.1.1
Published
OpenAPI client for @flywheel-io/sdk
Downloads
2
Keywords
Readme
@flywheel-io/sdk
JavaScript SDK for the Flywheel platform API, supporting Node.js and browser environments, with type definitions
Getting Started
This library's primary export is the Client, which can engage with all the APIs in the Flywheel platform. The Client instance requires an API key, which can be generated on the user profile page (e.g. https://dev.flywheel.io/#/profile). Pass this as the first argument when instantiating the client or API classes. See the Classes list below for available APIs.
Node.js
const { Client } = require('@flywheel-io/sdk');
const fw = new Client('dev.flywheel.io:7Almr6Y0ssVwYJKrG2');
fw.projects.getAllProjects({}).subscribe(projects => {
console.dir(projects);
});
Browser
<script src="https://cdn.flywheel.io/sdk/platform/flywheel-sdk-0.1.1.min.js"></script>
<script>
const fw = new Flywheel.Client('dev.flywheel.io:7Almr6Y0ssVwYJKrG2');
fw.projects.getAllProjects({}).subscribe(projects => {
console.dir(projects);
});
</script>