通过HTTP请求API示例

获取邮件列表

POST /v1/box/list HTTP/1.1
Host: domain-open-api.cuiqiu.com
Content-Length: 622
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="mail_id"

nM5GLra9Wo
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="token"

4dfd31985d7e417cb8062b402950efb0
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="start_time"

2021-07-15
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="end_time"

2021-07-16
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="page"

1
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="limit"

10
----WebKitFormBoundary7MA4YWxkTrZu0gW

 

获取邮件详细

POST /v1/box/detail HTTP/1.1
Host: domain-open-api.cuiqiu.com
Content-Length: 346
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="mail_id"

08EJ98s9dWz
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="token"

f76a1b32bacc4279bd6b731e59d8hj8837
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="box_id"

23094
----WebKitFormBoundary7MA4YWxkTrZu0gW

 

Golang语言API请求示例

获取邮件列表 package main import ( “fmt” “bytes” “mime/multip […]