getBroadcastsForChannel - kewalsk/My-OpenPeriscope GitHub Wiki

List of broadcasts to channel

GET https://channels.pscp.tv/v1/channels/{cid}/broadcasts

The getBroadcastsForChannel give information about the broadcasts shared to the channel by one of the members and the private broadcasts to the channel.

Request parameters

Place Name Type Description Optional
@Header Authorization String The authorization token got from authorizeToken No
@Path CID String The unique identification number of the channel No

Response

Name Type Description Optional
Broadcasts List<PsBid></PsBid> The list of broadcasts id class No
NLive int The number of live broadcasts No
NReplay int The number of replay broadcasts No

PsBid Fields

Name Type Description Optional
BID String The broadcasts id No
Featured boolean Featured broadcast (?) No

Error responses

HTTP Result HTTP Message Body message Description
400 Bad Request &#123;&quot;success&quot;&#58;false,&quot;msg&quot;&#58;&quot;Bad Request&quot;&#125; The request has some improper arguments, for example token is wrong
401 Unauthorized Token did not validate&#58;token is expired The authorization token is expired - get the new one
401 Unauthorized Requires authorization header There is no Authorization header in request
401 Unauthorized Token did not validate&#58;token contains an invalid number of segments The authorization token is wrong
405 Method Not Allowed Wrong HTTP method was used, i.e. POST instead of GET

Example

Sending request (set $token to the proper value first):

curl &#45;H &quot;Authorization&#58; $token&quot; https&#58;//channels.pscp.tv/v1/channels/&#42;&#42;&#42;/broadcasts

Result:

 &#123;
    &quot;Broadcasts&quot;&#58; &#91;
        &#123;
            &quot;BID&quot;&#58; &quot;1MYxNdMeDnpGw&quot;,
            &quot;Featured&quot;&#58; false
        &#125;,
        &#123;
            &quot;BID&quot;&#58; &quot;1djGXprzvyyGZ&quot;,
            &quot;Featured&quot;&#58; false
        &#125;,
        &#123;
            &quot;BID&quot;&#58; &quot;1BdGYAEmDaLGX&quot;,
            &quot;Featured&quot;&#58; false
        &#125;,
        &#123;
            &quot;BID&quot;&#58; &quot;1BdxYAEmpBMxX&quot;,
            &quot;Featured&quot;&#58; false
        &#125;,
        &#123;
            &quot;BID&quot;&#58; &quot;1jMJgvBWVRkGL&quot;,
            &quot;Featured&quot;&#58; false
        &#125;
    &#93;,
    &quot;NLive&quot;&#58; 1,
    &quot;NReplay&quot;&#58; 0
 &#125;
⚠️ **GitHub.com Fallback** ⚠️