/// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestAsync() { // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/customInterests/[CUSTOM_INTEREST]"; // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName); }
/// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestResourceNamesAsync() { // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) CustomInterestName resourceName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER_ID]", "[CUSTOM_INTEREST_ID]"); // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName); }
/// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestRequestObjectAsync() { // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) GetCustomInterestRequest request = new GetCustomInterestRequest { ResourceNameAsCustomInterestName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER]", "[CUSTOM_INTEREST]"), }; // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(request); }
/// <summary>Snippet for GetCustomInterestAsync</summary> public async Task GetCustomInterestAsync() { // Snippet: GetCustomInterestAsync(string, CallSettings) // Additional: GetCustomInterestAsync(string, CancellationToken) // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/customInterests/[CUSTOM_INTEREST]"; // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName); // End snippet }
/// <summary>Snippet for GetCustomInterestAsync</summary> public async Task GetCustomInterestResourceNamesAsync() { // Snippet: GetCustomInterestAsync(CustomInterestName, CallSettings) // Additional: GetCustomInterestAsync(CustomInterestName, CancellationToken) // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) CustomInterestName resourceName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER]", "[CUSTOM_INTEREST]"); // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName); // End snippet }