You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.1 KiB
66 lines
1.1 KiB
<?php
|
|
|
|
include 'DemoBase.php';
|
|
global $client;
|
|
|
|
$body = [
|
|
'Domain' => 'domain',
|
|
'SceneType' => 'push',
|
|
"AuthDetailList" => [
|
|
[
|
|
"EncryptionAlgorithm" => "md5",
|
|
"SecretKey" => "xx",
|
|
],
|
|
],
|
|
];
|
|
|
|
$response = $client->updateAuthKey(['json' => $body]);
|
|
echo $response;
|
|
echo '<br>';
|
|
|
|
$body = [
|
|
'Domain' => 'domain',
|
|
'SceneType' => 'push'
|
|
];
|
|
|
|
$response = $client->describeAuth(['json' => $body]);
|
|
echo $response;
|
|
echo '<br>';
|
|
|
|
$body = [
|
|
'Domain' => 'domain',
|
|
'App' => 'app',
|
|
'RefererInfoList' => [
|
|
[
|
|
'Key' => 'asd',
|
|
'Type' => 'xx',
|
|
'Value' => 'sad',
|
|
'Priority' => 0,
|
|
],
|
|
],
|
|
];
|
|
|
|
$response = $client->updateReferer(['json' => $body]);
|
|
echo $response;
|
|
echo '<br>';
|
|
|
|
$body = [
|
|
'Domain' => 'domain',
|
|
'App' => 'app',
|
|
];
|
|
|
|
$response = $client->describeReferer(['json' => $body]);
|
|
echo $response;
|
|
echo '<br>';
|
|
|
|
$body = [
|
|
'Vhost' => 'vv',
|
|
'App' => 'app',
|
|
];
|
|
|
|
$response = $client->deleteReferer(['json' => $body]);
|
|
echo $response;
|
|
echo '<br>';
|
|
|
|
|
|
|
|
|