/// <summary> /// Fetch a specific Rate Limit. /// </summary> /// <param name="pathServiceSid"> The SID of the Service that the resource is associated with </param> /// <param name="pathSid"> The unique string that identifies the resource </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of RateLimit </returns> public static RateLimitResource Fetch(string pathServiceSid, string pathSid, ITwilioRestClient client = null) { var options = new FetchRateLimitOptions(pathServiceSid, pathSid); return(Fetch(options, client)); }
/// <summary> /// Fetch a specific Rate Limit. /// </summary> /// <param name="options"> Fetch RateLimit parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of RateLimit </returns> public static async System.Threading.Tasks.Task <RateLimitResource> FetchAsync(FetchRateLimitOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = await client.RequestAsync(BuildFetchRequest(options, client)); return(FromJson(response.Content)); }