PHP code example of dishcheng / yunxinsms
1. Go to this page and download the library: Download dishcheng/yunxinsms library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dishcheng / yunxinsms example snippets
$params = ['mobile' => 'xxxxxxx', 'templateid' => 'xxxxxxx', 'authCode' => '1111'];
var_dump(YunXinSms::code_post($params));
$params = ['mobiles' => json_encode([xxxxxxx]), 'templateid' => 'xxxxxxx', 'params' => json_encode([xxxx, xxxx, xxxx])];
$response = YunXinSms::notice_post($params);
var_dump($response);