Skip to content

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 URL
  • apiKey: Your API Key (cần điền)
  • streamId: Auto-populated từ responses
  • streamKey: Auto-populated từ responses
  • mediaServerId: 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

  1. Mở Postman
  2. Click Import button (góc trên bên trái)
  3. Chọn file lunar-stream-partner-api.postman_collection.json
  4. Click Import

Bước 2: Import Environment

  1. Click Import button
  2. Chọn file lunar-stream-partner.postman_environment.json
  3. Click Import
  4. Chọn environment "Lunar Stream Partner Environment" từ dropdown

Bước 3: Cấu Hình API Key

  1. Click vào icon Environment (góc trên bên phải)
  2. Chọn "Lunar Stream Partner Environment"
  3. Điền apiKey với API Key của bạn
  4. Click Save

Bước 4: Test API

Chạy requests theo thứ tự:

  1. Get Available Media Servers → Auto-set mediaServerId
  2. Create Livestream → Auto-set streamIdstreamKey
  3. Get Livestream Details → Verify stream info
  4. End Livestream → Kết thúc stream (IRREVERSIBLE)
  5. 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 Key

Support

Nếu có vấn đề khi sử dụng Postman Collection, vui lòng tham khảo:

Released under the MIT License.