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);
            }
        }
Пример #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);
            }
        }
Пример #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);
 }
Пример #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));
 }
Пример #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));
 }