20 lines
380 B
PHP
20 lines
380 B
PHP
|
<?php
|
|||
|
|
|||
|
|
|||
|
use Volc\Service\Notify;
|
|||
|
|
|||
|
require('../../../vendor/autoload.php');
|
|||
|
require('../../src/Service/Notify.php');
|
|||
|
|
|||
|
$client = Notify::getInstance();
|
|||
|
$client->setAccessKey("your ak");
|
|||
|
$client->setSecretKey("your sk");
|
|||
|
|
|||
|
|
|||
|
$body = [
|
|||
|
'Url'=>'公网可以访问的url,需要申请正向代理',
|
|||
|
'Name'=>'测试',
|
|||
|
];
|
|||
|
|
|||
|
$response = $client->FetchResource($body);
|
|||
|
echo $response;
|