What you’ll learn:
- How to install the Metorial JavaScript SDK
- How to use the SDK in the browser, Node.js, and Deno environments
- How to make requests to the Metorial API using the SDK
Explore Node.js Examples:
Check out practical examples and sample code in the metorial-node examples directory on GitHub.
Using the SDK
To use the SDK, import the You can now use the
Metorial class and create an instance with your API key:metorial instance to make requests to the Metorial API.Making Requests
The SDK organizes API resources into logical namespaces (like Each method returns a Promise that resolves with the response data. Use
servers, serverImplementations, oauth, etc.). Each resource provides methods for common operations like get(), list(), create(), update(), and delete().async/await or .then() to handle the results.