Beispiel #1
0
        /// <summary>Snippet for GetRecommendationAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetRecommendationAsync()
        {
            // Create client
            RecommendationServiceClient recommendationServiceClient = await RecommendationServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/recommendations/[RECOMMENDATION_ID]";
            // Make the request
            Recommendation response = await recommendationServiceClient.GetRecommendationAsync(resourceName);
        }
        /// <summary>Snippet for GetRecommendationAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetRecommendationResourceNamesAsync()
        {
            // Create client
            RecommendationServiceClient recommendationServiceClient = await RecommendationServiceClient.CreateAsync();

            // Initialize request argument(s)
            RecommendationName resourceName = RecommendationName.FromCustomerRecommendation("[CUSTOMER_ID]", "[RECOMMENDATION_ID]");
            // Make the request
            Recommendation response = await recommendationServiceClient.GetRecommendationAsync(resourceName);
        }
Beispiel #3
0
        /// <summary>Snippet for GetRecommendationAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetRecommendationRequestObjectAsync()
        {
            // Create client
            RecommendationServiceClient recommendationServiceClient = await RecommendationServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetRecommendationRequest request = new GetRecommendationRequest
            {
                ResourceNameAsRecommendationName = RecommendationName.FromCustomerRecommendation("[CUSTOMER]", "[RECOMMENDATION]"),
            };
            // Make the request
            Recommendation response = await recommendationServiceClient.GetRecommendationAsync(request);
        }
        /// <summary>Snippet for GetRecommendationAsync</summary>
        public async Task GetRecommendationAsync()
        {
            // Snippet: GetRecommendationAsync(string, CallSettings)
            // Additional: GetRecommendationAsync(string, CancellationToken)
            // Create client
            RecommendationServiceClient recommendationServiceClient = await RecommendationServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/recommendations/[RECOMMENDATION]";
            // Make the request
            Recommendation response = await recommendationServiceClient.GetRecommendationAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetRecommendationAsync</summary>
        public async Task GetRecommendationResourceNamesAsync()
        {
            // Snippet: GetRecommendationAsync(RecommendationName, CallSettings)
            // Additional: GetRecommendationAsync(RecommendationName, CancellationToken)
            // Create client
            RecommendationServiceClient recommendationServiceClient = await RecommendationServiceClient.CreateAsync();

            // Initialize request argument(s)
            RecommendationName resourceName = RecommendationName.FromCustomerRecommendation("[CUSTOMER]", "[RECOMMENDATION]");
            // Make the request
            Recommendation response = await recommendationServiceClient.GetRecommendationAsync(resourceName);

            // End snippet
        }