TelAPI.TelAPIRestClient.GetUsage C# (CSharp) Method

GetUsage() public method

Individual usage resources are assigned a Sid which can be used to access them. In addition to the name and price of the feature used, usage resources also provide the date the usage occurred.
public GetUsage ( string sid ) : Task
sid string Usage sid
return Task
        public async Task<Usage> GetUsage(string sid)
        {
            Require.Argument(RequestUriParams.UsageSid, sid);

            var request = new RestRequest();
            request.Resource = RequestUri.GetUsageUri;
            request.AddUrlSegment(RequestUriParams.UsageSid, sid);

            return await Execute<Usage>(request);
        }
    }

Same methods

TelAPIRestClient::GetUsage ( string sid ) : Usage