产品列表
获取可用产品
获取可用产品的方法返回按产品类型划分的产品集合,还返回产品变体及其剩余数量
请求
URL
https://api.belurk.com/products/get-all
发送方法
GET
CURL
- 1.curl --location 'https://api.belurk.com/products/get-all'
- 2.--header 'x-api-token: {{API_TOKEN}}'
成功响应
响应状态: HTTP 200 OK
- 1.{
- 2. "data": {
- 3. "ipv6": {
- 4. "name": "IPv6",
- 5. "variants": [
- 6. {
- 7. "variant_id": 88,
- 8. "period": "2 месяца",
- 9. "price": 5,
- 10. "speed": 20,
- 11. "country": "Казахстан",
- 12. "country_code": "KZ",
- 13. "country_icon": "https://storage.belurk.com/icons/iconKZ.svg",
- 14. "discount": null,
- 15. "max_quantity": 100,
- 16. }
- 17. ]
- 18. }
- 19. "ipv4_shared": {
- 20. "name": "IPv4 Shared",
- 21. "variants": [
- 22. {
- 23. "variant_id": 64,
- 24. "period": "2 месяца",
- 25. "price": 20,
- 26. "speed": 20,
- 27. "country": "Финляндия",
- 28. "country_code": "FI",
- 29. "country_icon": "https://storage.belurk.com/icons/iconFI.svg",
- 30. "discount": null,
- 31. "max_quantity": 50,
- 32. }
- 33. ]
- 34. }
- 35. "ipv4": {
- 36. "name": "IPv4",
- 37. "variants": [
- 38. {
- 39. "variant_id": 58,
- 40. "period": "3 месяца",
- 41. "price": 90,
- 42. "speed": 20,
- 43. "country": "Финляндия",
- 44. "country_code": "FI",
- 45. "country_icon": "https://storage.belurk.com/icons/iconFI.svg",
- 46. "discount": null,
- 47. "max_quantity": 100,
- 48. }
- 49. ]
- 50. }
- 51. }
- 52.}
失败响应
响应状态: HTTP 401 未授权
- 1.{
- 2. "data": null
- 3. "error": "Unauthorized"
- 4.}