mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-05 09:20:40 +00:00
30 lines
662 B
PHP
30 lines
662 B
PHP
<?php
|
|
require('../../vendor/autoload.php');
|
|
use Volc\Service\Sms;
|
|
use Volc\Models\Vod\Request\VodApplyUploadInfoRequest;
|
|
use Volc\Models\Vod\Response\VodApplyUploadInfoResponse;
|
|
|
|
$client = Sms::getInstance('');
|
|
$client->setAccessKey("your ak");
|
|
$client->setSecretKey("your sk");
|
|
|
|
$contents = [
|
|
[
|
|
"sourceType" => "text/string",
|
|
"content" => "",
|
|
],
|
|
];
|
|
|
|
$body = [
|
|
"subAccount" => "subAccount",
|
|
"channelType" => "",
|
|
"name" => "",
|
|
"theme" => "",
|
|
"signature" => "your signature",
|
|
"contents" => "",
|
|
"caller" => "",
|
|
];
|
|
|
|
$response = $client->applyVmsTemplate(['json' => $body]);
|
|
echo $response;
|