基础地址:
https://api.makejiema.com
GET 请求: /api/order/create_order
| 参数 | 类型 | 必填 | 备注 |
|---|---|---|---|
| pid | int | 是 | 国家/商品 PID |
| secretKey | str | 是 | API密钥 |
| buynum | int | 是 | 购买数量不得低于所选商品要求的最低件数(未单独规定时最少为 1;部分邮箱类商品可能要求不少于 10 件)。 |
| 参数 | 类型 | 备注 |
|---|---|---|
| msg | str | 消息提示 |
| order_id | str | 订单号 |
| code | int | 响应代号:create 时 1成功/0失败;query 时 1有内容/2处理中暂无内容请稍后再查/0失败或不存在 |
成功响应不包含 data 字段;请保存返回的 order_id,并调用 query_order 获取号码/邮箱等内容列表。
成功示例:
{
"code": 1,
"msg": "创建成功,已扣费",
"order_id": "f7f145f39f9d4f67a4f2cfdf1fd8e721"
}
失败示例:
{
"code": 0,
"msg": "创建失败",
"order_id": null
}
GET 请求: /api/order/query_order
| 参数 | 类型 | 必填 | 备注 |
|---|---|---|---|
| order_id | str | 是 | 订单号 |
| 参数 | 类型 | 备注 |
|---|---|---|
| data | json(list) | 固定 list 结构,每个元素是一行订单内容 |
| msg | str | 消息提示 |
| order_id | str | 订单号 |
| code | int | 响应代号:create 时 1成功/0失败;query 时 1有内容/2处理中暂无内容请稍后再查/0失败或不存在 |
| 参数 | 类型 | 备注 |
|---|---|---|
| type | int | 内容类型:1=文本内容,2=含 getdata 链接内容 |
| content | str | 整行内容字符串,例如 account----password----recover 或 account----/api/order/getdata?cid=... |
成功示例:
{
"code": 1,
"msg": "查询成功",
"order_id": "f7f145f39f9d4f67a4f2cfdf1fd8e721",
"data": [
{
"type": 1,
"content": "example@gmail.com----abc123----recover@example.com"
},
{
"type": 2,
"content": "ouadhpxxxxx@gmail.com----/api/order/getdata?cid=806779395c1640c882e65aaf1aba21d9"
}
]
}
失败示例:
{
"code": 0,
"msg": "订单不存在",
"order_id": "not-exists-order-id"
}
GET 请求: /api/order/getdata
用法:先调用 /query_order。当 data 中某项 type=2 且 content 含 /api/order/getdata?cid=... 时,提取该路径并与 BASEURL 拼接后访问。
返回:纯文本。
| 参数 | 类型 | 必填 | 备注 |
|---|---|---|---|
| cid | str | 是 | 从 /api/order/getdata?cid=... 中提取 cid |
成功示例:
123456
失败示例:
not found
Q1: query_order 的 data 结构是什么?
data 为列表,每个元素包含 type 和 content。type=1 表示文本内容,type=2 表示 content 中包含 getdata 链接。
Q2: 如何访问 getdata 内容?
当 type=2 时,从 content 提取 /api/order/getdata?cid=...,再与 BASEURL 拼接后访问。
Q3: getdata 返回的是什么格式?
getdata 返回纯文本,不包裹 JSON 外壳。