API-文档
主网址:
https://anosim.net/
版本:
验证
-
描述
每个端点都需要通过 API 密钥进行身份验证。该密钥既可以通过apikey查询参数(旧版方式)提供,也可以通过 HTTP 请求标头(推荐方式)提供。如果两者同时提供,则以标头中的值为准。 -
支持的请求标头
-
查询参数 (过时的)
-
调用示例
# Query parameter (过时的) curl "https://anosim.net/api/v1/Balance?apikey=XXX" # Authorization header (受到推崇的) curl -H "Authorization: Bearer XXX" "https://anosim.net/api/v1/Balance" # X-API-Key header curl -H "X-API-Key: XXX" "https://anosim.net/api/v1/Balance"
端点
-
描述
返回账户余额 -
网址
/Balance -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Balance?apikey=XXX -
响应参数
-
响应示例
{ "accountBalanceInUSD":3418.40 }
-
描述
返回所有国家 -
网址
/Countries -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Countries?apikey=XXX -
响应参数
-
响应示例
[ { "id": 67, "country": "CzechRepublic" }, { "id": 98, "country": "Germany" }, { "id": 165, "country": "Lithuania" }, ...
-
描述
返回所有服务 -
网址
/Services -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Services?apikey=XXX -
响应参数
-
响应示例
[ { "id": 1, "service": "WhatsApp" }, { "id": 2, "service": "Telegram" }, { "id": 3, "service": "Google" } ]
-
描述
返回所有产品 -
网址
/Products -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Products?apikey=XXX&countryId=98 -
响应参数
-
响应示例
[ { "id": 1, "country": "Germany", "rentalType": "RentalService", "service": "Google, Gmail, Youtube", "durationInMinutes": 1440, "price": 1.00 }, { "id": 2, "country": "Netherlands", "rentalType": "RentalFull", "service": "", "durationInMinutes": 43200, "price": 25.00 }, { "id": 3, "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "durationInMinutes": 20, "price": 1.43, } ]
-
描述
根据 ID 返回包含可用数量和供应商信息的产品 -
网址
/Products/:id -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Products/1?apikey=XXX -
响应参数
-
响应示例
{ "id": 1, "country": "Germany", "rentalType": "RentalService", "service": "Google, Gmail, Youtube", "durationInMinutes": 1440, "price": 1.00, "provider": [ { "id": 0, "name": "Any", "availableCount": 2 }, { "id": 1, "name": "T-Mobile", "availableCount": 1 }, { "id": 2, "name": "Vodafone", "availableCount": 1 } ] }
-
描述
返回所有产品,并提供详细的价格映射及各价格对应的供应商可用性信息。 -
网址
/ProductPrices -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/ProductPrices?apikey=XXX&countryId=98&rentalTypeId=1&serviceId=1 -
响应参数
-
响应示例
[ { "id": 1, "country": "Germany", "rentalType": "Activation", "service": "WhatsApp", "durationInMinutes": 20, "basePrice": 0.20, "totalCount": 5, "priceMap": [ { "price": 0.20, "providers": [ { "providerId": 0, "name": "Any", "availableCount": 5 }, { "providerId": 1, "name": "T-Mobile", "availableCount": 3 }, { "providerId": 2, "name": "Vodafone", "availableCount": 2 } ] }, { "price": 0.42, "providers": [ { "providerId": 0, "name": "Any", "availableCount": 7 } ] } ] }, { "id": 2, "country": "Germany", "rentalType": "Activation", "service": "Telegram", "durationInMinutes": 20, "basePrice": 0.15, "totalCount": 12, "priceMap": [ { "price": 0.15, "providers": [ { "providerId": 0, "name": "Any", "availableCount": 12 }, { "providerId": 1, "name": "T-Mobile", "availableCount": 8 }, { "providerId": 2, "name": "Vodafone", "availableCount": 4 } ] } ] }, { "id": 3, "country": "Germany", "rentalType": "Activation", "service": "Google, Gmail, Youtube", "durationInMinutes": 20, "basePrice": 0.45, "totalCount": 0, "priceMap": [] } ]
-
描述
创建订单 -
网址
/Orders -
方法
POST -
查询参数
-
调用示例
https://anosim.net/api/v1/Orders?apikey=XXX&productId=6&amount=1&providerId=0&maxPrice=0 -
响应参数
-
响应示例
{ "id": 65, "date": "2024-05-21T23:22:04.357Z", "priceInUSD": 10.00, "bookings": [ { "id": 56, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-21T23:22:04.357Z", "endDate": "2024-05-21T23:42:04.357Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null } ] }
-
描述
返回最近的订单(最多 100 笔),包括订单预订记录。 -
网址
/Orders -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Orders?apikey=XXX -
响应参数
-
响应示例
[ { "id": 66, "date": "2024-05-22T01:19:32.457Z", "priceInUSD": 10.00, "bookings": [ { "id": 58, "number": "+420123456789", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.457Z", "endDate": "2024-05-22T01:39:32.457Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Ended", "extentionForId": null }, { "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "RentalService", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null } ] }, { "id": 65, "date": "2024-05-22T01:07:17.017Z", "priceInUSD": 10.00, "bookings": [ { "id": 56, "number": "+420123456710", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:07:17.017Z", "endDate": "2024-05-22T01:27:17.017Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Not Used", "extentionForId": null } ] } ]
-
描述
按 ID 返回订单(包含订单预订信息) -
网址
/Orders/:id -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Orders/66?apikey=XXX -
响应参数
-
响应示例
{ "id": 66, "date": "2024-05-22T01:19:32.457Z", "priceInUSD": 10.00, "bookings": [ { "id": 58, "number": "+420123456789", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.457Z", "endDate": "2024-05-22T01:39:32.457Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Ended", "extentionForId": null }, { "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "RentalService", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null } ] }
-
描述
返回所有当前已预订的 SIM 卡 -
网址
/SimCards -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/SimCards?apikey=XXX -
响应参数
-
响应示例
[ { "number": "+420123456779", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "inUseStart": "2024-05-21T23:19:32.457Z", "inUseEnd": "2024-05-21T23:39:32.457Z" }, { "number": "+420123456789", "country": "CzechRepublic", "rentalType": "RentalService", "service": "WhatsApp", "inUseStart": "2024-05-21T23:19:32.587Z", "inUseEnd": "2024-05-21T23:29:32.587Z" }, { "number": "+420123456798", "country": "CzechRepublic", "rentalType": "RentalFull", "service": "", "inUseStart": "2024-05-21T23:19:32.587Z", "inUseEnd": "2024-05-21T23:29:32.587Z" } ]
-
描述
返回最近收到的短信(最多 100 条) -
网址
/Sms -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Sms?apikey=XXX -
响应参数
-
响应示例
[ { "simCardNumber": "+420123456789", "messageDate": "2024-05-21T23:22:04.357Z", "messageSender": "+420123456123", "messageText": "Hello" }, { "simCardNumber": "+420123456756", "messageDate": "2024-03-11T22:30:12.773Z", "messageSender": "+420123456123", "messageText": "Hello again" } ]
-
描述
返回订单预订的短信信息 -
网址
/Sms/:orderbookingId -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/Sms/12?apikey=XXX -
响应参数
-
响应示例
[ { "simCardNumber": "+420123456741", "messageDate": "2024-05-21T23:22:04.357Z", "messageSender": "+420123456123", "messageText": "Hello" }, { "simCardNumber": "+420123456741", "messageDate": "2024-05-21T23:24:28.123Z", "messageSender": "+420123456123", "messageText": "Hello again" } ]
-
描述
返回最近的订单预订记录(最多 100 条) -
网址
/OrderBookings -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookings?apikey=XXX -
响应参数
-
响应示例
[ { "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null }, { "id": 54, "number": "+4912345678910", "country": "Germany", "rentalType": "RentalFull", "service": "", "startDate": "2024-05-22T01:36:51.7Z", "endDate": "2024-05-22T02:36:52.7Z", "durationInMinutes": 60, "priceInUSD": 12.00, "state": "Active", "extentionForId": null } ]
-
描述
返回所有当前的订单预订以及过去 12 小时内结束的订单预订。 -
网址
/OrderBookingsCurrent -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookingsCurrent?apikey=XXX -
响应参数
-
响应示例
[ { "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "state": "Active", }, { "id": 54, "number": "+4912345678910", "country": "Germany", "rentalType": "RentalFull", "service": "", "startDate": "2024-05-22T01:36:51.7Z", "endDate": "2024-05-22T02:36:52.7Z", "durationInMinutes": 60, "state": "Active", } ]
-
描述
根据 ID 返回订单预订信息 -
网址
/OrderBooking -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookings/59?apikey=XXX -
响应参数
-
响应示例
{ "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null }, { "id": 54, "number": "+4912345678910", "country": "Germany", "rentalType": "RentalFull", "service": "", "startDate": "2024-05-22T01:36:51.7Z", "endDate": "2024-05-22T02:36:52.7Z", "durationInMinutes": 60, "priceInUSD": 12.00, "state": "Active", "extentionForId": null }
-
描述
根据 ID 取消激活订单预订 -
网址
/OrderBooking:id -
方法
PATCH -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookings/59?apikey=XXX -
响应参数
-
响应示例
{ "success": true }
-
描述
针对预订创建复用订单(仅适用于 Activation-Kleinanzeigen) -
网址
/OrderBookingReUse/:orderbookingid -
方法
POST -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookingsReUse/62?apikey=XXX -
响应参数
-
响应示例
{ "id": 65, "date": "2024-05-21T23:22:04.357Z", "priceInUSD": 10.00, "bookings": [ { "id": 65, "number": "+4912345678915", "country": "Germany", "rentalType": "Activation", "service": "Kleinanzeigen", "startDate": "2024-06-23T09:22:07.485Z", "endDate": "2024-06-23T09:42:07.485Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null } ] }
-
描述
创建延期订单预订 -
网址
/OrderBookings -
方法
POST -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookings?apikey=XXX&orderBookingId=103&extentionInMinutes=60 -
响应参数
-
响应示例
{ "id": 66, "date": "2024-05-22T02:36:52.7Z", "priceInUSD": 12.00, "bookings": [ { "id": 55, "number": "+4912345678910", "country": "Germany", "rentalType": "RentalFull", "service": "", "startDate": "2024-05-22T02:36:52.7Z", "endDate": "2024-05-22T02:36:52.7Z", "durationInMinutes": 60, "priceInUSD": 12.00, "state": "Pending", "extentionForId": 54 } ] }
-
描述
设置订单预订的自动续订状态。如果提供了 `orderBookingId`,则该设置仅适用于指定的订单预订;否则,适用于该用户的所有订单预订。 -
网址
/OrderBookingsAutoRenewal -
方法
POST -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookingsAutoRenewal/SetAutoRenewalAsync?apiKey=XXX&enable=1&orderBookingId=123 -
响应参数
-
响应示例
{ "Success": true, "Message": "Auto-renewal set successfully.", "AffectedOrderBookingsCount": 1 }
-
描述
为现有的订单预订创建共享链接。如果已存在链接(无论处于激活还是已撤销状态),系统将生成新令牌,使旧令牌失效,并启用共享功能。 -
网址
/OrderBookingShare/:orderbookingid -
方法
POST -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookingShare/123?apikey=XXX -
响应参数
-
响应示例
{ "weblink": "https://anosim.net/share/orderbooking?token=abcd1234efgh5678", "apilink": "https://anosim.net/api/v1/orderbookingshare?token=abcd1234efgh5678" }
-
描述
撤销(禁用)特定订单预订的有效共享链接。 -
网址
/OrderBookingShare/Revoke/:orderbookingid -
方法
PATCH -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookingShare/Revoke/123?apikey=XXX -
响应参数
-
响应示例
{ "success": true "message": "Shared order revoked successfully.", }
-
描述
使用有效的共享令牌获取共享订单预订的详细信息。 -
网址
/OrderBookingShare -
方法
GET -
查询参数
-
调用示例
https://anosim.net/api/v1/OrderBookingShare?token=abcd1234efgh5678 -
响应参数
-
响应示例
{ "number": "+4912345678910", "country": "Germany", "rentalType": "Activation", "service": "Facebook", "startDate": "2025-05-22T02:36:52.7Z", "endDate": "2025-05-22T03:36:52.7Z", "state": "Active", "sms": [ { "messageSender": "Facebook", "messageDate": "2025-05-22T02:40:00Z", "messageText": "Your code is 123456" } ] }
信息
-
描述
订单预订状态类型列表 -
List
-
描述
租赁类型列表 -
List
Id - 1
Id - 2
Id - 3