123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?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>';
|