简要描述:
- 获取收件箱的邮件,比如随机邮箱的服务。
- 此接口不免费
请求URL:
https://api.rurl.vip/mail/get
请求方式:
- GET
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| user | 是 | string | 用户名 |
| token | 是 | string | 认证密钥 |
| receiver | 是 | string | 收信邮箱 |
| sender | 否 | string | 发信邮箱 |
| time | 否 | string | 格式:2018-01-01 或 2018-01-01 00:00:00,默认最近 24 小时 |
| subject | 否 | string | 邮件主题 |
| type | 否 | string | 返回格式:json和html,默认以json格式输出 |
请求举例
1、https://api.rurl.vip/mail/get?user=test&token=test&receiver=test@yxinfos.com
2、https://api.rurl.vip/mail/get?user=test&token=test&receiver=test@yxinfos.com&time=2018-01-01
3、https://api.rurl.vip/mail/get?user=test&token=test&receiver=test@yxinfos.com&time=2018-01-01&type=html
返回示例
{
"msg":[
{
"content":"test",
"time":"2018-01-01 00:00:00",
"receiver":"test@yxinfos.com",
"sender":"test@yxinfos.com",
"subject":"test"
},
{
"content":"test",
"time":"2018-01-01 00:00:00",
"receiver":"test@yxinfos.com",
"sender":"test@yxinfos.com",
"subject":"test"
},
...
...
...
],
"result":"ok"
}