/// <summary>Snippet for GetLifeEventAsync</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 GetLifeEventAsync() { // Create client LifeEventServiceClient lifeEventServiceClient = await LifeEventServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/lifeEvents/[LIFE_EVENT_ID]"; // Make the request LifeEvent response = await lifeEventServiceClient.GetLifeEventAsync(resourceName); }
/// <summary>Snippet for GetLifeEventAsync</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 GetLifeEventResourceNamesAsync() { // Create client LifeEventServiceClient lifeEventServiceClient = await LifeEventServiceClient.CreateAsync(); // Initialize request argument(s) LifeEventName resourceName = LifeEventName.FromCustomerLifeEvent("[CUSTOMER_ID]", "[LIFE_EVENT_ID]"); // Make the request LifeEvent response = await lifeEventServiceClient.GetLifeEventAsync(resourceName); }
/// <summary>Snippet for GetLifeEventAsync</summary> public async Task GetLifeEventAsync() { // Snippet: GetLifeEventAsync(string, CallSettings) // Additional: GetLifeEventAsync(string, CancellationToken) // Create client LifeEventServiceClient lifeEventServiceClient = await LifeEventServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/lifeEvents/[LIFE_EVENT_ID]"; // Make the request LifeEvent response = await lifeEventServiceClient.GetLifeEventAsync(resourceName); // End snippet }
/// <summary>Snippet for GetLifeEventAsync</summary> public async Task GetLifeEventResourceNamesAsync() { // Snippet: GetLifeEventAsync(LifeEventName, CallSettings) // Additional: GetLifeEventAsync(LifeEventName, CancellationToken) // Create client LifeEventServiceClient lifeEventServiceClient = await LifeEventServiceClient.CreateAsync(); // Initialize request argument(s) LifeEventName resourceName = LifeEventName.FromCustomerLifeEvent("[CUSTOMER_ID]", "[LIFE_EVENT_ID]"); // Make the request LifeEvent response = await lifeEventServiceClient.GetLifeEventAsync(resourceName); // End snippet }