Getting Started
Welcome to the MySDK developer guide! This page will walk you through creating your first project using the SDK.
Prerequisites
- Node.js v14+ (or your language runtime)
- npm or yarn (if using JavaScript)
- An API key – learn how to obtain one
Step 1 – Install the SDK
npm install mysdk --save
Step 2 – Initialize the Client
import MySDK from "mysdk";
const client = new MySDK({
apiKey: "YOUR_API_KEY"
});
export default client;
Step 3 – Make Your First Call
import client from "./client.js";
async function fetchData() {
try {
const response = await client.get("/data");
console.log("Data:", response);
} catch (err) {
console.error("Error:", err);
}
}
fetchData();
Next Steps
Now that you have a basic setup, you can explore: