2019-08-06 17:03:18 +12:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Appwrite\Client;
|
|
|
|
use Appwrite\Services\Projects;
|
|
|
|
|
|
|
|
$client = new Client();
|
|
|
|
|
|
|
|
$client
|
2019-10-02 07:10:33 +13:00
|
|
|
->setProject('')
|
|
|
|
->setKey('')
|
2019-08-06 17:03:18 +12:00
|
|
|
;
|
|
|
|
|
|
|
|
$projects = new Projects($client);
|
|
|
|
|
2019-10-14 09:19:06 +13:00
|
|
|
$result = $projects->createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 0);
|