PHP code example of bryce / openapi
1. Go to this page and download the library: Download bryce/openapi 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/ */
bryce / openapi example snippets
/**
* @author Bryce<[email protected]>
* @date 2019/12/12
*/
s->setClientKey('Your client key');
if ($sms->send('188****1019')) exit('Success');
else exit('Failure');
/**
* @author Bryce<[email protected]>
* @date 2019/12/12
*/
$sms->setClientKey('Your client key');
if ($mailer->verifyCode('188****1019', 434307)) exit('Success');
else exit('Failure');
/**
* @author Bryce<[email protected]>
* @date 2019/12/12
*/
id');
$mailer->setClientKey('Your client key');
if ($mailer->send('To email', 'subject', 'body')) exit('Success');
else exit('Failure');