Latest Legacy

    Retrieve all audio Streams

    This method lets you retrieve all active and inactive audio streams for a given call UUID.

    API Endpoint

    GEThttps://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/Stream/

    Arguments

    No arguments need to be passed.

    Response

    {
      "api_id": "87399872-13cb-11ee-9da1-0242ac110003",
      "meta": {
        "limit": 20,
        "next": null,
        "offset": 0,
        "previous": null,
        "total_count": 1
      },
      "objects": [
        {
          "audio_track": "both",
          "bidirectional": false,
          "bill_duration": 21,
          "billed_amount": "0.00300",
          "call_uuid": "816e0b22-6913-4b43-88a9-6d3054b77df9",
          "created_at": "2023-06-26 02:44:50.617032+00:00",
          "end_time": "2023-06-26 08:14:50+05:30",
          "plivo_auth_id": "MAY2RJNZKZNJMWOXXXX",
          "resource_uri": "/v1/Account/MAY2RJNZKZNJMWOXXXX/Call/816e0b22-6913-4b43-88a9-6d3054b77df9/Stream/4543157e-60d3-4c3a-b9d8-189c47686bf0/",
          "rounded_bill_duration": 60,
          "service_url": "ws://13.127.140.35:19088/ws",
          "start_time": "2023-06-26 08:14:29+05:30",
          "stream_id": "4543157e-60d3-4c3a-b9d8-189c47686bf0"
        }
      ]
    }
    

    Example Request

    1
    2
    3
    
    import plivo
    client = plivo.RestClient('<auth_id>','<auth_token>')
    response = client.calls.get_all_streams('ebe4ab56-9b72-4c3e-9870-5f4262847407')
    

    Was this code helpful

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    
    require 'rubygems'
    require 'plivo'
    
    include Plivo
    include Plivo::Exceptions
    
    api = RestClient.new("<auth_id>","<auth_token>")
    
    begin
      response = api.calls.get_all_streams("227ff3c3-1562-4316-819f-217f638890f6")
      puts response
    rescue PlivoRESTError => e
      puts 'Exception: ' + e.message
    end
    

    Was this code helpful

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    
    // Retrieve all audio streams for a call
    
    'use strict';
    
    var plivo = require('plivo');
    
    (function main() {
        var client = new plivo.Client(<auth_id>, <auth_token>);
        client.calls.getAllStream(call_uuid,
        ).then(function (response) {
            console.log(response);
        }, function (err) {
            console.error(err);
        });
    })();
    

    Was this code helpful

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    
    <?php
    /**
     * Retrieve all audio streams for a call
     */
    require 'vendor/autoload.php';
    use Plivo\RestClient;
    use Plivo\Exceptions\PlivoRestException;
    $client = new RestClient("<auth_id>","<auth_token>");
    try {
        
        $response = $client->calls->getAllStreams(
            "be812e3f-89d5-4ded-a93b-9d38a956aa46"
        );
    
        print_r($response);
    }
    catch (PlivoRestException $ex) {
        print_r($ex);
    }
    

    Was this code helpful

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    
    package com.plivo.examples.audioStream;
    
    import java.io.IOException;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.Map;
    
    import com.plivo.api.Plivo;
    import com.plivo.api.exceptions.PlivoRestException;
    import com.plivo.api.exceptions.PlivoValidationException;
    import com.plivo.api.models.base.ListResponse;
    import com.plivo.api.models.call.Call;
    import com.plivo.api.models.call.CallCreateResponse;
    import com.plivo.api.models.call.actions.CallStreamCreateResponse;
    import com.plivo.api.models.call.actions.CallStreamCreator;
    import com.plivo.api.models.call.actions.CallStreamGetSpecificResponse;
    
    /**
     * Retrieve all audio streams for a call
     */
    class getAllAudioStreaming {
    
      public static void main(String [] args) throws PlivoRestException, PlivoValidationException, IOException {
    
        Plivo.init("<auth_id>","<auth_token>");
    
        try {
    
          ListResponse<CallStreamGetSpecificResponse> response1 = Call.streamGetter("eba53b9e-8fbd-45c1-9444-696d2172fbc8")
            .list();
    
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
    }
    

    Was this code helpful

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    
    /**
     * Retrieve all audio streams for a call
     */
    using System;
    using System.Collections.Generic;
    using Plivo;
    using Plivo.Exception;
    
    namespace PlivoExamples
    {
        internal class Program
        {
            public static void Main(string[] args)
            {
                var api = new PlivoApi("<auth_id>","<auth_token>");
                try
                {
                    
                    var response = api.Call.GetAllStreams("eff5f2da-58a9-4447-b484-bee21870638c");
                    Console.Write(response);
                }
                catch (PlivoRestException e)
                {
                    Console.WriteLine("Exception: " + e.Message);
                }
            }
        }
    }
    

    Was this code helpful

    1
    2
    
    curl -i --user AUTH_ID:AUTH_TOKEN \
        https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/Stream/
    

    Was this code helpful

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    
    package Audio_Streaming
    
    import (
    "fmt"
    "github.com/plivo/plivo-go/v7"
    )
    
    //Retrieve all audio streams for a call
    //package main
    
    func main() {
    client, err := plivo.NewClient("<auth_id>", "<auth_token>", &plivo.ClientOptions{})
    if err != nil {
    fmt.Print("Error", err.Error())
    return
    }
    //Method for create Stream
    response, err:= client.Calls.GetAllStreams( "61fa0825-3018-4508-9a3a-922247b1052d")
    
    if err != nil {
    fmt.Print("Error", err.Error())
    return
    }
    fmt.Printf("Response: %#v\n", response)
    }
    

    Was this code helpful