Exemplo n.º 1
0
        /// <summary>
        /// Operation: Get User Call Record
        /// Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log/{callRecordId}
        /// </summary>
        public async Task <RingCentral.UserCallLogRecord> Get(ReadUserCallRecordParameters queryParams = null)
        {
            if (this.callRecordId == null)
            {
                throw new System.ArgumentNullException("callRecordId");
            }

            return(await rc.Get <RingCentral.UserCallLogRecord>(this.Path(), queryParams));
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Returns call log records by ID.
 ///     HTTP Method: get
 ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/call-log/{callRecordId}
 ///     Rate Limit Group: Heavy
 ///     App Permission: ReadCallLog
 ///     User Permission: ReadCallLog
 /// </summary>
 public async Task <UserCallLogRecord> Get(ReadUserCallRecordParameters queryParams = null,
                                           RestRequestConfig restRequestConfig      = null)
 {
     if (callRecordId == null)
     {
         throw new ArgumentException("Parameter cannot be null", nameof(callRecordId));
     }
     return(await rc.Get <UserCallLogRecord>(Path(), queryParams, restRequestConfig));
 }
Exemplo n.º 3
0
        public async Task <BatchResponse <RingCentral.UserCallLogRecord>[]> BatchGet(
            ReadUserCallRecordParameters queryParams = null, CancellationToken?cancellationToken = null)
        {
            if (!this.Path().Contains(","))
            {
                throw new System.ArgumentException(
                          "In order to make a BatchGet, please specify multiple IDs delimited by ','");
            }

            return(await rc.BatchGet <RingCentral.UserCallLogRecord>(this.Path(), queryParams, cancellationToken));
        }
Exemplo n.º 4
0
 /// <summary>
 ///     Returns call log records by ID.
 ///     HTTP Method: get
 ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/call-log/{callRecordId}
 ///     Rate Limit Group: Heavy
 ///     App Permission: ReadCallLog
 ///     User Permission: ReadCallLog
 /// </summary>
 public async Task <UserCallLogRecord> Get(ReadUserCallRecordParameters queryParams = null,
                                           RestRequestConfig restRequestConfig      = null)
 {
     return(await rc.Get <UserCallLogRecord>(Path(), queryParams, restRequestConfig));
 }