**This method is not enabled

GET /v1/PlayerStreamers/{Sid}/PlaybackGrant

A PlaybackGrant resource allows developers to generate a grant to initialize the Twilio Live Player SDK and connect to a livestream.

This method is not enabled. Returns a single PlaybackGrant resource identified by a SID.

Path parameters

  • Sid string Required

    The SID of the PlayerStreamer resource to fetch.

Responses

  • OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • date_created string(date-time) | null

      The ISO 8601 date and time in GMT when the resource was created

    • The grant that authorizes the player sdk to connect to the livestream

    • sid string | null

      The unique string that identifies the PlayerStreamer associated with this PlaybackGrant.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^VJ[0-9a-fA-F]{32}$.

    • url string(uri) | null

      The absolute URL of the resource

GET /v1/PlayerStreamers/{Sid}/PlaybackGrant
curl \
 -X GET https://media.twilio.com/v1/PlayerStreamers/{Sid}/PlaybackGrant \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "date_created": "2023-05-04T09:42:00+00:00",
  "sid": "string",
  "url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "2024-05-04T09:42:00+00:00",
  "sid": "string",
  "url": "https://example.com"
}