Downloads
Tải xuống các tài liệu và công cụ hỗ trợ tích hợp Lunar Stream API.
Postman Collection
Postman Collection hoàn chỉnh giúp bạn test và tích hợp API một cách nhanh chóng.
Tính năng
- ✅ Tất cả API endpoints được organize theo folders
- ✅ Pre-request scripts tự động set variables
- ✅ Test scripts validate responses
- ✅ Examples cho success và error cases
- ✅ Environment variables template
Download Files
Postman Collection
📦 lunar-stream-partner-api.postman_collection.json
Bao gồm tất cả API endpoints:
- Livestream Management (Create, List, Get, Update, End, Delete)
- Media Servers
- Public Endpoints
Postman Environment
🔧 lunar-stream-partner.postman_environment.json
Environment variables template với:
baseUrl: API base URLapiKey: Your API Key (cần điền)streamId: Auto-populated từ responsesstreamKey: Auto-populated từ responsesmediaServerId: Default media server ID
Partner Integration Guide
Tài liệu hướng dẫn tích hợp chi tiết dành cho đối tác.
📖 Partner Integration Guide - Comprehensive documentation for integrating Lunar Stream
Nội dung bao gồm:
- Quick Start (5 phút)
- Authentication & API Key Management
- Complete API Reference
- Code Examples (Node.js, Python, Mobile)
- Advanced Topics (Stream Key, Push Token, CDN Failover)
- Troubleshooting Guide
Liên hệ: partners@lunarstream.io để nhận tài liệu đầy đủ
Bao gồm:
- Quick Start (5 phút)
- Authentication & Security
- API Reference đầy đủ
- Code Examples (Node.js, Python, Mobile)
- Advanced Topics
- Troubleshooting Guide
- Postman Collection Guide
Hướng Dẫn Sử Dụng Postman Collection
Bước 1: Import Collection
- Mở Postman
- Click Import button (góc trên bên trái)
- Chọn file
lunar-stream-partner-api.postman_collection.json - Click Import
Bước 2: Import Environment
- Click Import button
- Chọn file
lunar-stream-partner.postman_environment.json - Click Import
- Chọn environment "Lunar Stream Partner Environment" từ dropdown
Bước 3: Cấu Hình API Key
- Click vào icon Environment (góc trên bên phải)
- Chọn "Lunar Stream Partner Environment"
- Điền
apiKeyvới API Key của bạn - Click Save
Bước 4: Test API
Chạy requests theo thứ tự:
- Get Available Media Servers → Auto-set
mediaServerId - Create Livestream → Auto-set
streamIdvàstreamKey - Get Livestream Details → Verify stream info
- End Livestream → Kết thúc stream (IRREVERSIBLE)
- Delete Livestream → Cleanup
Cấu Trúc Collection
Lunar Stream Partner API
├── 1. Livestream Management
│ ├── Create Livestream
│ ├── Get All Livestreams
│ ├── Get Livestream Details
│ ├── Update Livestream
│ ├── End Livestream (IRREVERSIBLE)
│ └── Delete Livestream
├── 2. Media Servers
│ └── Get Available Media Servers
└── 3. Public Endpoints
└── Get Stream Info by Stream KeySupport
Nếu có vấn đề khi sử dụng Postman Collection, vui lòng tham khảo: