stackgo-js-sdk
v0.0.40
Published
This sdk makess it easier for you to integrate with StackGo in your JS or TS projects
Readme
StackGo JS SDK
Thanks for trying out the StackGo SDK, This SDK will help get started quickly with building SaaS integrations. For more on StackGo philosophy and to familiarise yourself with the terminology, see here.
// Sample Starter Code
const { StackGo } = require("stackgo-js-sdk");
const { SGShopify } = require("stackgo-js-sdk");
// Sign up on https://app.stackgo.io to get your client_id, client_secret
const sg = new StackGo(
"client_id",
"client_secret"
);
const getShopifyAuthLink = async () => {
await sg.authenticate();
const shp = new SGShopify(sg, "appSlug")
const resp = await shp.shopifyAuthLink("userForeignIdenitifer")
return resp.data
}
getShopifyAuthLink()// monday.com GraphQL proxy example
const { StackGo, SGMonday } = require("stackgo-js-sdk");
const sg = new StackGo(
"client_id",
"client_secret"
);
const callMonday = async () => {
await sg.authenticate();
const monday = new SGMonday(sg, "appSlug");
const authLink = await monday.mondayAuthLink("userForeignIdentifier");
const response = await monday.mondayCall({
userForeignIdentifier: "userForeignIdentifier",
method: "post",
url: "",
body: JSON.stringify({
query: "query { me { id name } }",
variables: {}
}),
headers: JSON.stringify({
"API-Version": "2026-04"
})
});
return { authLink, response };
}
callMonday()