PHP语言API请求示例

获取邮件列表

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://domain-open-api.cuiqiu.com/v1/box/list");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('mail_id' => '5cb7d92','token' => '8e47b6a0ab5cb7d921ace8ysuja671nh','start_time' => '2021-07-15','end_time' => '2021-09-27','page' => '1','limit' => '10'));
$output = curl_exec($ch);
curl_close($ch);
echo $output;

获取邮件详细

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://domain-open-api.cuiqiu.com/v1/box/detail");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('mail_id' => '08EJ98s9dWz','token' => 'f76a1b32bacc4279bd6b731e59d8hj8837','box_id' => '23094'));
$output = curl_exec($ch);
curl_close($ch);
echo $output;

 

如何使用客户端收邮件?

以QQ邮箱客户端为例,其他平台也是差不多的配置 注:旗舰版用户请联系客户获取服务地址 脆球当前对外开通的端口和 […]