第三方邮件服务查询
GET
/api/v2/email/provider
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
59f86b4832eb28071bdd9214
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://core.authing.cn/api/v2/email/provider' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 59f86b4832eb28071bdd9214'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
enabled
boolean
必需
provider
string
必需
name
string
必需
logo
string
必需
description
null
必需
fields
array [object {2}]
必需
示例
{
"code": 200,
"message": "获取成功",
"data": {
"id": "61c9307ba9e5de5a02f59a06",
"createdAt": "2021-12-27T03:18:19.330Z",
"updatedAt": "2022-01-12T09:22:24.152Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"enabled": true,
"provider": "custom",
"name": "",
"logo": "",
"description": null,
"fields": [
{
"key": "smtp_host",
"value": "http://kwnfoiwfw"
},
{
"key": "smtp_port",
"value": 296
},
{
"key": "secure",
"value": false
},
{
"key": "from",
"value": "mvw;mvw"
},
{
"key": "secret",
"value": "wfwefew"
},
{
"key": "apikey"
}
]
}
}
修改于 2022-01-14 11:58:53