0
8
KKKhalid Khan
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key project API keys section.
Shortcut: appwrite.sdk.node.init
const sdk = require('node-appwrite');
let client = new sdk.Client();
client
.setEndpoint(' api_endpoint') // Your API Endpoint
.setProject('Project_ID') // Your project ID
.setKey('apikey') // Your secret API key
.setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;