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 from project's API keys section.
This code is for PHP
Shortcut: appwrite.php.init
$client = new 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
;