GetAuthorizationUrl - 获取授权链接(已下线)
该接口已下线。
接口说明
准备工作
请先完成阿里云账号注册、获取阿里云访问密钥,更多信息,请参见通信授权服务使用流程。
QPS 限制
本接口的单用户 QPS 限制为 1000 次/秒。超过限制,API 调用会被限流,这可能会影响您的业务,请合理调用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
dypns:GetAuthorizationUrl |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PhoneNo |
string |
是 |
手机号。 |
1390000**** |
| SchemeId |
integer |
是 |
授权场景 ID。您可在号码认证服务控制台的授权场景管理页面查看授权场景 ID。 |
234**** |
| EndDate |
string |
否 |
授权结束日期,合约型方案不能为空,类型:yyyy-MM-dd。 |
2020–12–28 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
string |
状态码。
|
OK |
| Message |
string |
状态码的描述。 |
请求成功 |
| RequestId |
string |
请求 ID。 |
8906582E-6722 |
| Data |
object |
结构体。 |
|
| AuthorizationUrl |
string |
授权链接。 |
https://render.****.com/p/s/web-call-minapp/auth-bao?page=commauth/index&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJiaXpUeXBlIjoiQ29tbUF1dGgiLCJiaXpJZCI6IjVmNWZjNjAzZDQzMTQ0MWZiYTZiNjYzM2QyMjIyNzU0IiwiZXhwIjoxNjA4MTkxODQxfQ.5IvBj2nKgr60APtotaIB13vtPVrdsPQ6avIfWxte1pA&_env=prod |
示例
正常返回示例
JSON格式
{
"Code": "OK",
"Message": "请求成功",
"RequestId": "8906582E-6722",
"Data": {
"AuthorizationUrl": "https://render.****.com/p/s/web-call-minapp/auth-bao?page=commauth/index&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJiaXpUeXBlIjoiQ29tbUF1dGgiLCJiaXpJZCI6IjVmNWZjNjAzZDQzMTQ0MWZiYTZiNjYzM2QyMjIyNzU0IiwiZXhwIjoxNjA4MTkxODQxfQ.5IvBj2nKgr60APtotaIB13vtPVrdsPQ6avIfWxte1pA&_env=prod"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameters | The specified parameter is not valid. | 参数无效 |
| 400 | MissingParameter | You must specify the parameter. | 参数缺失 |
| 400 | Throttling.System | The request was denied due to API flow control. | 接口被限流 |
| 400 | MobileNumberIllgeal | The specified mobile phone number is invalid. | 手机号码不合法 |
| 400 | DataNotFound | The specified scheme does not exist. | 查询方案不存在 |
| 400 | IllegalParameter | The specified endDate is invalid. | 参数无效 |
| 400 | SchemeNotPassed | The scheme is not passed. | 查询方案未通过审核 |
| 500 | IdentityCertifyNotExist | The identity verification record does not exist. | 身份认证记录不存在 |
| 500 | InternalError | An error occurred while processing your request. | 内部错误。 |
| 500 | SystemError | A system error occurred. | 系统异常 |
| 500 | OutOfService | The account is suspended. | 账号已停机 |
| 500 | FunctionNotSubscribed | You have not subscribed to the function. | |
| 403 | Forbidden | The user is not authorized to operate on the specified resource. | 权限校验不通过 |
| 403 | UnauthorizedOperation | Failed to verify your access permissions. | 您的权限校验失败。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。