/// <summary>
        /// Fetch specific Evaluation Instance.
        /// </summary>
        /// <param name="pathCustomerProfileSid"> The unique string that identifies the resource </param>
        /// <param name="pathSid"> The unique string that identifies the Evaluation resource </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of CustomerProfilesEvaluations </returns>
        public static async System.Threading.Tasks.Task <CustomerProfilesEvaluationsResource> FetchAsync(string pathCustomerProfileSid,
                                                                                                         string pathSid,
                                                                                                         ITwilioRestClient client = null)
        {
            var options = new FetchCustomerProfilesEvaluationsOptions(pathCustomerProfileSid, pathSid);

            return(await FetchAsync(options, client));
        }
        /// <summary>
        /// Fetch specific Evaluation Instance.
        /// </summary>
        /// <param name="pathCustomerProfileSid"> The unique string that identifies the resource </param>
        /// <param name="pathSid"> The unique string that identifies the Evaluation resource </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of CustomerProfilesEvaluations </returns>
        public static CustomerProfilesEvaluationsResource Fetch(string pathCustomerProfileSid,
                                                                string pathSid,
                                                                ITwilioRestClient client = null)
        {
            var options = new FetchCustomerProfilesEvaluationsOptions(pathCustomerProfileSid, pathSid);

            return(Fetch(options, client));
        }
        /// <summary>
        /// Fetch specific Evaluation Instance.
        /// </summary>
        /// <param name="options"> Fetch CustomerProfilesEvaluations parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of CustomerProfilesEvaluations </returns>
        public static CustomerProfilesEvaluationsResource Fetch(FetchCustomerProfilesEvaluationsOptions options,
                                                                ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = client.Request(BuildFetchRequest(options, client));

            return(FromJson(response.Content));
        }
 private static Request BuildFetchRequest(FetchCustomerProfilesEvaluationsOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Get,
                Rest.Domain.Trusthub,
                "/v1/CustomerProfiles/" + options.PathCustomerProfileSid + "/Evaluations/" + options.PathSid + "",
                queryParams: options.GetParams(),
                headerParams: null
                ));
 }
        /// <summary>
        /// Fetch specific Evaluation Instance.
        /// </summary>
        /// <param name="options"> Fetch CustomerProfilesEvaluations parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of CustomerProfilesEvaluations </returns>
        public static async System.Threading.Tasks.Task <CustomerProfilesEvaluationsResource> FetchAsync(FetchCustomerProfilesEvaluationsOptions options,
                                                                                                         ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = await client.RequestAsync(BuildFetchRequest(options, client));

            return(FromJson(response.Content));
        }