zishang520 / aliyun-core-pns by luoyy

aliyun-php-sdk-core-pns
11
0
2
Package Data
Maintainer Username: luoyy
Maintainer Contact: zishang520@gmail.com (luoyy)
Package Create Date: 2021-01-19
Package Last Update: 2021-01-19
Home Page:
Language: PHP
License: Unknown
Last Refreshed: 2024-12-20 03:00:03
Package Statistics
Total Downloads: 11
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

阿里云核心SDK号码认证模块

安装包

composer require luoyy/aliyun-core-pns

Quick Sample Usage

/**
 * PNS DEMO
 */
use luoyy\AliCore\Facades\AcsClient;
use luoyy\AliCore\Pns\Request\GetMobileRequest;


// 初始化GetMobileRequest实例用于设置手机号认证获取手机号的参数
$request = new GetMobileRequest();
// 必填,app端SDK获取的登录token。请参考: https://help.aliyun.com/document_detail/189865.html?spm=a2c4g.11186623.6.581.3f0e73041pspL0
$request->setAccessToken(/*access_token*/);
// 选填,外部流水号。请参考: https://help.aliyun.com/document_detail/189865.html?spm=a2c4g.11186623.6.581.3f0e73041pspL0
$request->setOutId(/*out_id*/);
$response = AcsClient::getAcsResponse($request);
var_dump($response);