Example #1
0
        /// <summary>
        /// Operation: Get Device
        /// Http Get /restapi/v1.0/account/{accountId}/device/{deviceId}
        /// </summary>
        public async Task <RingCentral.GetDeviceInfoResponse> Get(ReadDeviceParameters queryParams = null)
        {
            if (this.deviceId == null)
            {
                throw new System.ArgumentNullException("deviceId");
            }

            return(await rc.Get <RingCentral.GetDeviceInfoResponse>(this.Path(), queryParams));
        }
Example #2
0
 /// <summary>
 ///     Returns account device(s) by their ID(s).
 ///     HTTP Method: get
 ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/device/{deviceId}
 ///     Rate Limit Group: Light
 ///     App Permission: ReadAccounts
 ///     User Permission: ReadCompanyDevices
 /// </summary>
 public async Task <GetDeviceInfoResponse> Get(ReadDeviceParameters queryParams    = null,
                                               RestRequestConfig restRequestConfig = null)
 {
     if (deviceId == null)
     {
         throw new ArgumentException("Parameter cannot be null", nameof(deviceId));
     }
     return(await rc.Get <GetDeviceInfoResponse>(Path(), queryParams, restRequestConfig));
 }
Example #3
0
 /// <summary>
 ///     Returns account device(s) by their ID(s).
 ///     HTTP Method: get
 ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/device/{deviceId}
 ///     Rate Limit Group: Light
 ///     App Permission: ReadAccounts
 ///     User Permission: ReadCompanyDevices
 /// </summary>
 public async Task <GetDeviceInfoResponse> Get(ReadDeviceParameters queryParams    = null,
                                               RestRequestConfig restRequestConfig = null)
 {
     return(await rc.Get <GetDeviceInfoResponse>(Path(), queryParams, restRequestConfig));
 }