Skip to content

Commit

Permalink
Merge pull request #20 from yunpian/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
dzh authored Dec 28, 2017
2 parents f552b25 + b24c739 commit ea176d9
Show file tree
Hide file tree
Showing 19 changed files with 557 additions and 209 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/vendor/
composer.phar
.vscode/
.idea/
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ yunpian-php-sdk
- 添加composer依赖

```json
"require" : {
"require": {
"yunpian/yunpian-php-sdk" : "~1.0"
}
```
Expand All @@ -23,9 +23,12 @@ $clnt = YunpianClient::create($apikey);

$param = [YunpianClient::MOBILE => '18616020000',YunpianClient::TEXT => '【云片网】您的验证码是1234'];
$r = $clnt->sms()->single_send($param);
var_dump($r);
//var_dump($r);
if($r->isSucc()){
//$r->data()
}

//账户 $clnt->user() 签名 $clnt->sign() 模版 $clnt->tpl() 短信 $clnt->sms() 语音 $clnt->voice() 流量 $clnt->flow()
//账户$clnt->user() 签名$clnt->sign() 模版$clnt->tpl() 短信$clnt->sms() 语音$clnt->voice() 流量$clnt->flow() 视频短信$clnt->vsms()
```
****: v1.0开始使用composer管理工程。不兼容之前版本,若需要可从github下载[0.0.1](https://github.com/yunpian/yunpian-php-sdk/releases/tag/0.0.1)

Expand Down
Loading

0 comments on commit ea176d9

Please sign in to comment.