0
1
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 from project's API keys section.
Shortcut: appwrite.deno.init
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
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
;