OkayAPI Docs
API Params
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
email_sender | String | Optaion | 发件人 | ||
order | Int | Optaion | 1 | 1按收藏时间顺序显示,2按收藏时间逆序 | |
page | Int | Optaion | 1 | MIN: 1 | 第几页 |
perpage | Int | Optaion | 10 | MIN: 1;MAX: 10 | 分页数量 |
API Debug
KEY | REQUIRED | VALUE |
---|---|---|
app_key | *Required | |
email_sender | Option | |
order | Option | |
page | Option | |
perpage | Option |
API Response
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示成功,正数表示业务失败场景,负数表示系统失败场景 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
total | Int | 邮件总数 |
items | Array | 邮件列表 |
items[].id | Int | 邮件ID |
items[].email_sender | String | 发送人 |
items[].email_address | String | 收件人 |
items[].email_title | String | 邮件title |
items[].email_content | String | 邮件内容 |
items[].email_result | String | 发送接口,1表示成功,0表示失败 |
items[].email_time | String | 发送时间 |
HTTP Response Code
HTTP Status Code | Description |
---|---|
Http Status = 200 | Success |
Http Status = 400 | Illegal-Params |
Http Status = 401 | Illegal-Token |
Http Status = 402 | IP-Banned |
Http Status = 404 | API-NOT-Exsits |
Http Status = 406 | Illegal-APPKEY |
Http Status = 407 | APPKEY-Expired-Out |
Http Status = 408 | APPKEY-Busy |
Http Status = 409 | Illegal-Sign |
Http Status = 413 | API-Traffic-NOT-Enough |
Http Status = 415 | API-LOCKED |
Http Status = 500 | Internal-Server-Error |