Retrieve all multiparty calls

    Lets you retrieve details of a list of multiparty calls made from an account.

    API Endpoint

    GET https://api.plivo.com/v1/Account/{auth_id}/MultiPartyCall/

    Arguments

    No arguments need to be passed.

    Returns

    Returns the details of a list of multiparty calls.

    Response

    HTTP Status Code: 200

    Response for a successful request

    {
      "api_id": "ed93aea0-45cd-11eb-8530-0242ac110006",
      "meta": {
        "count": 2,
        "limit": 20,
        "next": null,
        "offset": 0,
        "previous": null
      },
      "objects": [
        {
          "billed_amount": "0.05000",
          "billed_duration": 60,
          "creation_time": "2020-12-24 15:23:38+05:30",
          "duration": 2,
          "end_time": "2020-12-24 15:23:40+05:30",
          "friendly_name": "test_mpc_1",
          "mpc_uuid": "4ed623a5-9f3e-45e0-9e7e-3d19a94b3bd3",
          "participants": "/v1/Account/MAOTE1OWE0MDK0MTLHYW/MultiPartyCall/uuid_4ed623a5-9f3e-45e0-9e7e-3d19a94b3bd3/Participant/",
          "recording": null,
          "resource_uri": "/v1/Account/MAOTE1OWE0MDK0MTLHYW/MultiPartyCall/uuid_4ed623a5-9f3e-45e0-9e7e-3d19a94b3bd3/",
          "start_time": "2020-12-24 15:23:38+05:30",
          "status": "Ended",
          "stay_alone": false,
          "sub_account": null,
          "termination_cause": "No Active Participants",
          "termination_cause_code": 1000
        },
        {
          "billed_amount": "0.05000",
          "billed_duration": 60,
          "creation_time": "2020-12-24 14:50:03+05:30",
          "duration": 27,
          "end_time": "2020-12-24 14:50:30+05:30",
          "friendly_name": "test_mpc",
          "mpc_uuid": "8742d531-292a-46aa-8754-836be1092885",
          "participants": "/v1/Account/MAOTE1OWE0MDK0MTLHYW/MultiPartyCall/uuid_8742d531-292a-46aa-8754-836be1092885/Participant/",
          "recording": null,
          "resource_uri": "/v1/Account/MAOTE1OWE0MDK0MTLHYW/MultiPartyCall/uuid_8742d531-292a-46aa-8754-836be1092885/",
          "start_time": "2020-12-24 14:50:03+05:30",
          "status": "Ended",
          "stay_alone": false,
          "sub_account": null,
          "termination_cause": "No Active Participants",
          "termination_cause_code": 1000
        }
      ]
    }
    

    Example Request

    1
    2
    3
    4
    5
    6
    
    import plivo
    
    client = plivo.RestClient(auth_id="your_auth_id", auth_token="your_auth_token")
    
    response = client.multi_party_calls.list()
    print(response)
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    
    require "rubygems"
    require "/root/plivo-ruby/lib/plivo.rb"
    include Plivo
    include Plivo::Exceptions
    
    api = RestClient.new("<auth_id>","<auth_token>")
    begin
      response = api.multipartycalls.list()
      puts response
    rescue PlivoRESTError => e
      puts 'Exception: ' + e.message
    end
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    
    var plivo = require('plivo');
    
    (function main() {
        'use strict';
    
        var client = new plivo.Client("<auth_id>","<auth_token>");
        client.multiPartyCalls.list().then(function (response) {
            console.log(response);
        }, function (err) {
            console.error(err);
        });
    })();
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    
    <?php
    require 'vendor/autoload.php';
    
    use Plivo\RestClient;
    use Plivo\Exceptions\PlivoRestException;
    
    $client = new RestClient("<auth_id>", "<auth_token>");
    try
    {
        $response = $client
            ->multiPartyCalls
            ->getList();
        print_r($response);
    }
    catch(PlivoRestException $ex)
    {
        print_r($ex);
    }
    
    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
    
    package com.plivo.examples.multipartycall;
    
    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.multipartycall.MultiPartyCall;
    import com.plivo.api.models.multipartycall.MultiPartyCallUtils;
    import com.plivo.api.util.PropertyFilter;
    
    import java.io.IOException;
    import java.text.SimpleDateFormat;
    import java.time.OffsetDateTime;
    import java.time.format.DateTimeFormatter;
    import java.util.Date;
    
    
    class ListMPC {
    
        public static void main(String [] args) throws IOException, PlivoRestException, PlivoValidationException
        {
            Plivo.init("<YOUR-AUTH-ID>", "<YOUR-AUTH-TOKEN>");
            try
            {
              ListResponse<MultiPartyCall> allMPC = MultiPartyCall.lister().list();
              System.out.println(allMPC.getMeta().getCount());
            }
    	       catch (Exception e)
            {
                e.printStackTrace();
            }
        }
    }
    
    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
    
    using System;
    using Plivo;
    using Plivo.Exception;
    
    namespace PlivoExamples
    {
        class Program
        {
            static void Main(string[] args)
            {
                var api = new PlivoApi("<auth_id>", "<auth_token>");
    
                try
                {
                    var response = api.MultiPartyCall.List();
                    Console.WriteLine(response);
                }
                catch (PlivoRestException e)
                {
                    Console.WriteLine("Exception: " + e.Message);
                }
    
            }
        }
    }
    
    1
    2
    
    curl -i --user AUTH_ID:AUTH_TOKEN \
        https://api.plivo.com/v1/Account/{auth_id}/MultiPartyCall/
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    
    package main
    import (
        "fmt"
    
        "github.com/plivo/plivo-go"
    )
    
    func main() {
        client, err := plivo.NewClient("<auth_id>", "<auth_token>", &plivo.ClientOptions{})
        if err != nil {
            panic(err)
        }
        response, err := client.MultiPartyCall.List(
            plivo.MultiPartyCallListParams{})
        if err != nil {
            panic(err)
        }
        fmt.Printf("Response: %#v\n", response)
    }