0.2.1 • Published 6 months ago

@ptkl/sdk v0.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

To use the SDK, you’ll first need to generate an access token.

If you haven’t created any users or roles yet, head to the IAM section in the dashboard. Start by creating a role, then create a user and assign the appropriate role(s) to them.

Once your user is set up, go to their API user edit page. From there, you can generate a new secret or create a token for an existing secret by clicking the "Generate secret" button.

Usage

const platform = new Platform({
    token: // your generated token
})

// now you can
const results = await platform.function().run("hello_world", {text: "Hi!"})
0.2.1

6 months ago

0.2.0

6 months ago

0.1.0

6 months ago