static private async Task read_user_active_calls()
        {
            var parameters = new ListExtensionActiveCallsParameters();

            parameters.view = "Simple";
            var resp = await restClient.Restapi().Account().Extension().ActiveCalls().Get(parameters);

            foreach (CallLogRecord record in resp.records)
            {
                Console.WriteLine("Call result: " + record.result);
            }
        }
Beispiel #2
0
        static private async Task read_user_active_calls()
        {
            RestClient rc = new RestClient("client_id", "client_secret", false);
            await rc.Authorize("username", "extension_number", "password");

            var parameters = new ListExtensionActiveCallsParameters();

            parameters.view = "Simple";
            var resp = await rc.Restapi().Account().Extension().ActiveCalls().Get(parameters);

            foreach (CallLogRecord record in resp.records)
            {
                Console.WriteLine("Call result: " + record.result);
            }
        }
Beispiel #3
0
 /// <summary>
 /// Operation: Get User Active Calls
 /// Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/active-calls
 /// </summary>
 public async Task<RingCentral.ActiveCallsResponse> Get(ListExtensionActiveCallsParameters queryParams = null)
 {
     return await rc.Get<RingCentral.ActiveCallsResponse>(this.Path(), queryParams);
 }
Beispiel #4
0
 /// <summary>
 /// Operation: Get User Active Calls
 /// HTTP Method: GET
 /// Endpoint: /restapi/v1.0/account/{accountId}/extension/{extensionId}/active-calls
 /// Rate Limit Group: Heavy
 /// App Permission: ReadCallLog
 /// User Permission: ReadCallLog
 /// </summary>
 public async Task <RingCentral.UserActiveCallsResponse> Get(
     ListExtensionActiveCallsParameters queryParams = null, CancellationToken?cancellationToken = null)
 {
     return(await rc.Get <RingCentral.UserActiveCallsResponse>(this.Path(), queryParams, cancellationToken));
 }
Beispiel #5
0
 /// <summary>
 /// Operation: Get User Active Calls
 /// HTTP Method: GET
 /// Endpoint: /restapi/v1.0/account/{accountId}/extension/{extensionId}/active-calls
 /// Rate Limit Group: Heavy
 /// App Permission: ReadCallLog
 /// User Permission: ReadCallLog
 /// </summary>
 public async Task <RingCentral.UserActiveCallsResponse> Get(
     ListExtensionActiveCallsParameters queryParams = null, RestRequestConfig restRequestConfig = null)
 {
     return(await rc.Get <RingCentral.UserActiveCallsResponse>(this.Path(), queryParams, restRequestConfig));
 }