Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

  • 请求地址:https://api.online-disposablemail.com

  • 请求方式: POST

  • 请求参数:

参数名

是否必选

类型

说明

apiKey

string

用户 Key

project

number

服务 ID

mailType

number

邮箱类型

  • 示例:

{
    "apiKey": "c299451f56d9403b993860ceebcca50a",
    "project": 2,
    "mailType": 1
}
  • 响应参数:

{
    "code": 200,
    "msg": "操作成功",
    "data": {
        "orderId": "1826901504387100673",
        "email": "1oLsQHNK@cAc4yqi4j.cT"
    }
}

参数名

类型

说明

orderId

string

邮箱订单 ID

email

string

邮箱账号

code200 表示获取邮箱成功,其他均为失败,示例:

 {
      ...
      "code": 41001,
      "msg": "参数无效,请检查"
 }
{
      ...
      "code": 41002,
      "msg": "获取超时,请重试."
 }

  • code 错误码有如下:

    • 40000 : 未知错误

    • 41001:请求参数无效,请检查参数。

    • 41002:获取超时,可以继续重试获取;

    • 41003:库存不足,无法继续获取;

    • 41004:账户余额不足;

  • No labels