コード例 #1
0
        /// <summary>
        /// Retrieve a list of all fax media instances for the specified fax.
        /// </summary>
        /// <param name="options"> Read FaxMedia parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of FaxMedia </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <FaxMediaResource> > ReadAsync(ReadFaxMediaOptions options,
                                                                                                    ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = await client.RequestAsync(BuildReadRequest(options, client));

            var page = Page <FaxMediaResource> .FromJson("media", response.Content);

            return(new ResourceSet <FaxMediaResource>(page, options, client));
        }