LogoLogo
  • Rad TV Creator and Streaming Docs
  • Getting Started - Creators, Studios, Publishers
    • Create Your Rad TV Channel
    • Upload and Monetize Videos
    • Sell Individual Videos
    • Sell Subscription Video
    • Create Content Playlists
    • Create a FAST Channel
    • Publish RSS From Outside Server
    • Get Verified
    • Get Approved for Subscription Payments
    • Pricing Onchain Art
    • Maximize Your Earnings
    • VR and Portrait Content FAQ
  • Getting Started - Subscribers, Viewers
    • Premium and Free On-Demand Video, and Free TV
    • Rad TV for Web
    • Rad TV for PS5 / PS VR2
      • Sideloading
      • DLNA/UPnP
      • RSS Feeds
      • Video Encoding
      • File Naming Conventions
      • Controls for VR Version
      • Changelog for VR Version
    • Rad TV for PS4 / PS VR
      • Sideloading
    • Rad TV for iOS / Apple TV
    • Rad TV for Android / Android TV / Chromecast
    • Rad TV for Meta Quest
      • Sideloading
    • Local Media Servers and DLNA/UPnP
    • Adding External RSS Feeds to Your Library
  • Getting Started - Developer API
    • Authentication
    • GraphQL Basics
    • Managing Content
    • Managing Playlists
    • Managing Channels
  • Premium Subscriptions
    • Unlock Rad TV Premium with a Stream Pass NFT
  • Earn Free Premium Benefits via Referrals
  • Rad TV Partnerships for Businesses
  • Rad TV Blockchain Integrations
  • Rad TV Technical Support
Powered by GitBook
On this page
  • Working with Channels
  • Retrieving Channel Information
  • Updating Channel Metadata
  • Best Practices
  1. Getting Started - Developer API

Managing Channels

PreviousManaging PlaylistsNextPremium Subscriptions

Last updated 4 months ago

Check out our custom Rad TV Developer API . (free or premium OpenAI account required)

Working with Channels

Channels in the Rad TV Developer API serve as containers for organizing content and playlists. You can manage channels by retrieving channel data and customizing channel metadata.

Retrieving Channel Information

To fetch a channel's details, use the me query to access the authenticated user's channel.

GraphQL Query Example:

query {
  me {
    channel {
      id
      metadata {
        name
        summary
        keywords
      }
      playlists {
        id
        metadata {
          title
          summary
        }
      }
    }
  }
}

Expected Response:

{
  "data": {
    "me": {
      "channel": {
        "id": "did:rad:channel/5678-wxyz",
        "metadata": {
          "name": "John's Channel",
          "summary": "A collection of curated content by John",
          "keywords": ["personal", "curated", "media"]
        },
        "playlists": [
          {
            "id": "did:rad:playlist/abcd-1234",
            "metadata": {
              "title": "Adventure Playlist",
              "summary": "Exciting adventure videos"
            }
          }
        ]
      }
    }
  }
}

Updating Channel Metadata

To update a channel's metadata, use the updateChannelMetadata mutation. This operation requires the channel ID and the updated metadata fields.

GraphQL Mutation Example:

mutation {
  updateChannelMetadata(
    id: "did:rad:channel/5678-wxyz",
    input: {
      name: "John's Updated Channel",
      summary: "Updated collection of curated content",
      keywords: ["updated", "media", "collection"]
    }
  ) {
    id
    metadata {
      name
      summary
      keywords
    }
  }
}

Expected Response:

{
  "data": {
    "updateChannelMetadata": {
      "id": "did:rad:channel/5678-wxyz",
      "metadata": {
        "name": "John's Updated Channel",
        "summary": "Updated collection of curated content",
        "keywords": ["updated", "media", "collection"]
      }
    }
  }
}

Best Practices

  • Meaningful Metadata: Use clear and concise metadata to make your channel easy to identify and navigate.

  • Organized Playlists: Structure your playlists within the channel for thematic consistency.

  • Error Handling: Ensure proper error handling for cases like invalid IDs or missing fields.

chatbot here