/// <summary>Snippet for GetCustomerFeed</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomerFeedResourceNames() { // Create client CustomerFeedServiceClient customerFeedServiceClient = CustomerFeedServiceClient.Create(); // Initialize request argument(s) CustomerFeedName resourceName = CustomerFeedName.FromCustomerCustomerFeed("[CUSTOMER]", "[CUSTOMER_FEED]"); // Make the request CustomerFeed response = customerFeedServiceClient.GetCustomerFeed(resourceName); }
/// <summary>Snippet for GetCustomerFeedAsync</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 GetCustomerFeedResourceNamesAsync() { // Create client CustomerFeedServiceClient customerFeedServiceClient = await CustomerFeedServiceClient.CreateAsync(); // Initialize request argument(s) CustomerFeedName resourceName = CustomerFeedName.FromCustomerCustomerFeed("[CUSTOMER]", "[CUSTOMER_FEED]"); // Make the request CustomerFeed response = await customerFeedServiceClient.GetCustomerFeedAsync(resourceName); }
/// <summary>Snippet for GetCustomerFeed</summary> public void GetCustomerFeedRequestObject() { // Snippet: GetCustomerFeed(GetCustomerFeedRequest, CallSettings) // Create client CustomerFeedServiceClient customerFeedServiceClient = CustomerFeedServiceClient.Create(); // Initialize request argument(s) GetCustomerFeedRequest request = new GetCustomerFeedRequest { ResourceNameAsCustomerFeedName = CustomerFeedName.FromCustomerCustomerFeed("[CUSTOMER]", "[CUSTOMER_FEED]"), }; // Make the request CustomerFeed response = customerFeedServiceClient.GetCustomerFeed(request); // End snippet }
/// <summary>Snippet for GetCustomerFeedAsync</summary> public async Task GetCustomerFeedResourceNamesAsync() { // Snippet: GetCustomerFeedAsync(CustomerFeedName, CallSettings) // Additional: GetCustomerFeedAsync(CustomerFeedName, CancellationToken) // Create client CustomerFeedServiceClient customerFeedServiceClient = await CustomerFeedServiceClient.CreateAsync(); // Initialize request argument(s) CustomerFeedName resourceName = CustomerFeedName.FromCustomerCustomerFeed("[CUSTOMER]", "[CUSTOMER_FEED]"); // Make the request CustomerFeed response = await customerFeedServiceClient.GetCustomerFeedAsync(resourceName); // End snippet }