1) Use a package manager to install the SDK. e.g. npm install @zesty-io/sdk
2) Create an example file
// example/basic/index.jsconstSDK=require("@zesty-io/sdk");// !!! Do not commit your password to a repository. This needs to stay secret.// We only have you enter it here for simplicity of the example.// Add your user email, password and instance ZUIDconstZESTY_USER_EMAIL="";constZESTY_USER_PASSWORD="";constZESTY_INSTANCE_ZUID="";asyncfunctionmain() {// Get authenticated sessionconstauth=newSDK.Auth();constsession=awaitauth.login(ZESTY_USER_EMAIL,ZESTY_USER_PASSWORD);// Instantiate sdk instance with instance ZUID and authenticated session tokenconstsdk=newSDK(ZESTY_INSTANCE_ZUID,session.token);// Request instance dataconstres=awaitsdk.instance.getModels();// View our response data in the consoleconsole.log(res.data);}// Run the functionmain();