点我购买微软长效邮箱和在线取件系统

官方授权,稳定可靠,支持批量管理取件

获取最新一封邮件

请求方法

GET / POST

接口URL

/api/mail-new

核心功能

获取最新邮件+自动提取6位验证码

参数说明

参数名 是否必填 说明
refresh_token 必填 用于身份验证的 refresh_token
client_id 必填 客户端 ID
email 必填 邮箱地址
mailbox 必填 邮箱文件夹(INBOX / Junk)
response_type 可选 返回格式(json / html,默认 json)
password 可选 接口安全验证密码(联系小黑)

使用示例

JavaScript (Fetch API)

// GET 请求
fetch('https://xiaoheifk.cn/api/mail-new?refresh_token=your_refresh_token&client_id=your_client_id&email=your_email@example.com&mailbox=INBOX&response_type=json')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

// POST 请求
fetch('https://xiaoheifk.cn/api/mail-new', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    refresh_token: 'your_refresh_token',
    client_id: 'your_client_id',
    email: 'your_email@example.com',
    mailbox: 'INBOX',
    response_type: 'json'
  })
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

获取全部邮件

请求方法

GET / POST

接口URL

/api/mail-all

核心功能

获取全部邮件+自动提取6位验证码

参数说明

参数名 是否必填 说明
refresh_token 必填 用于身份验证的 refresh_token
client_id 必填 客户端 ID
email 必填 邮箱地址
mailbox 必填 邮箱文件夹(INBOX / Junk)
password 可选 接口安全验证密码(联系小黑)

使用示例

JavaScript (Fetch API)

// GET 请求
fetch('https://xiaoheifk.cn/api/mail-all?refresh_token=your_refresh_token&client_id=your_client_id&email=your_email@example.com&mailbox=INBOX')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

// POST 请求
fetch('https://xiaoheifk.cn/api/mail-all', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    refresh_token: 'your_refresh_token',
    client_id: 'your_client_id',
    email: 'your_email@example.com',
    mailbox: 'INBOX'
  })
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

清空收件箱

请求方法

GET / POST

接口URL

/api/process-inbox

核心功能

一键清空收件箱所有邮件

参数说明

参数名 是否必填 说明
refresh_token 必填 用于身份验证的 refresh_token
client_id 必填 客户端 ID
email 必填 邮箱地址
password 可选 接口安全验证密码(联系小黑)

使用示例

JavaScript (Fetch API)

// GET 请求
fetch('https://xiaoheifk.cn/api/process-inbox?refresh_token=your_refresh_token&client_id=your_client_id&email=your_email@example.com')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

// POST 请求
fetch('https://xiaoheifk.cn/api/process-inbox', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    refresh_token: 'your_refresh_token',
    client_id: 'your_client_id',
    email: 'your_email@example.com'
  })
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

清空垃圾箱

请求方法

GET / POST

接口URL

/api/process-junk

核心功能

一键清空垃圾箱所有邮件

参数说明

参数名 是否必填 说明
refresh_token 必填 用于身份验证的 refresh_token
client_id 必填 客户端 ID
email 必填 邮箱地址
password 可选 接口安全验证密码(联系小黑)

使用示例

JavaScript (Fetch API)

// GET 请求
fetch('https://xiaoheifk.cn/api/process-junk?refresh_token=your_refresh_token&client_id=your_client_id&email=your_email@example.com')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

// POST 请求
fetch('https://xiaoheifk.cn/api/process-junk', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    refresh_token: 'your_refresh_token',
    client_id: 'your_client_id',
    email: 'your_email@example.com'
  })
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));