설명 없음

sms_delete_signature.php 621B

1234567891011121314151617181920212223242526
  1. <?php
  2. require_once __DIR__ . '/../../autoload.php';
  3. use Qiniu\Auth;
  4. use Qiniu\Sms\Sms;
  5. // 控制台获取密钥:https://portal.qiniu.com/user/key
  6. $accessKey = getenv('QINIU_ACCESS_KEY');
  7. $secretKey = getenv('QINIU_SECRET_KEY');
  8. $auth = new Auth($accessKey, $secretKey);
  9. $client = new Sms($auth);
  10. // 删除签名
  11. // 参考文档:https://developer.qiniu.com/sms/api/5891/sms-api-delete-signature
  12. // 签名 ID
  13. $signature_id = 'xxxxxx';
  14. list($ret, $err) = $client->deleteSignature($signature_id);
  15. if ($err !== null) {
  16. var_dump($err);
  17. } else {
  18. echo "\n====> Delete Signature $signature_id Successfully\n";
  19. }