liujinyong/ali-api

1.0.3 2024-01-03 03:14 UTC

This package is auto-updated.

Last update: 2024-10-03 05:06:43 UTC


README

阿里云整合API.

安装

$ 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("");

贡献

您可以通过以下三种方式之一进行贡献

  1. 使用 问题追踪器 提交错误报告。
  2. 问题追踪器 上回答问题或修复错误。
  3. 贡献新功能或更新wiki。

代码贡献过程不是很正式。您只需确保遵循PSR-0、PSR-1和PSR-2编码指南。任何新的代码贡献都必须附带相应的单元测试(如果适用)。

许可证

MIT