获取 accessToken
POST
/api/v2/userpools/access-token
请求参数
Body 参数application/json
userPoolId
string
必需
secret
string
必需
示例
{
"userPoolId": "string",
"secret": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/userpools/access-token' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
accessToken
string
必需
iat
string
签发时间
exp
string
到期时间
示例
{
"accessToken": "string",
"iat": "string",
"exp": "string"
}
修改于 2022-03-11 08:23:05