liujinyong / ali-api
阿里云api
1.0.3
2024-01-03 03:14 UTC
Requires
- php: >5.5
- alibabacloud/darabonba-openapi: ^0.2.10
- alibabacloud/dypnsapi-20170525: ^1.1.0
- alibabacloud/tea-console: ^0.1.0
- alibabacloud/tea-utils: ^0.2.19
README
阿里云整合API.
Installing
$ composer require liujinyong/ali-api
整合阿里云API
1号码认证服务-短信认证功能
//发送短信 $client = new \Liujinyong\AliApi\core\number_authentication\Message("","","",""); $res = $client->send(""); $res->toMap() //验证短信 $client = new \Liujinyong\AliApi\core\number_authentication\Message("","","",""); $res = $client->check(""); $res->toMap()
2.号码认证服务-号码认证功能
//获取手机号 $client = new \Liujinyong\AliApi\core\one_time_login\Login("",""); $res = $client->getPhone(""); //校验手机号 $client = new \Liujinyong\AliApi\core\one_time_login\Login("",""); $res = $client->checkPhone("","");
3.融合认证服务-融合认证功能
//获取token $client = new \Liujinyong\AliApi\core\rong_authentication\Rong("",""); $res = $client->gettoken("Android",1000,'',"",""); //获取手机号 $client = new \Liujinyong\AliApi\core\rong_authentication\Rong("",""); $res = $client->getPhone("");
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT