Example #1
0
 /// <summary>Snippet for GetLifeEvent</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetLifeEventResourceNames()
 {
     // Create client
     LifeEventServiceClient lifeEventServiceClient = LifeEventServiceClient.Create();
     // Initialize request argument(s)
     LifeEventName resourceName = LifeEventName.FromCustomerLifeEvent("[CUSTOMER_ID]", "[LIFE_EVENT_ID]");
     // Make the request
     LifeEvent response = lifeEventServiceClient.GetLifeEvent(resourceName);
 }
Example #2
0
 /// <summary>Snippet for GetLifeEvent</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetLifeEvent()
 {
     // Create client
     LifeEventServiceClient lifeEventServiceClient = LifeEventServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/lifeEvents/[LIFE_EVENT_ID]";
     // Make the request
     LifeEvent response = lifeEventServiceClient.GetLifeEvent(resourceName);
 }
 /// <summary>Snippet for GetLifeEvent</summary>
 public void GetLifeEventRequestObject()
 {
     // Snippet: GetLifeEvent(GetLifeEventRequest, CallSettings)
     // Create client
     LifeEventServiceClient lifeEventServiceClient = LifeEventServiceClient.Create();
     // Initialize request argument(s)
     GetLifeEventRequest request = new GetLifeEventRequest
     {
         ResourceNameAsLifeEventName = LifeEventName.FromCustomerLifeEvent("[CUSTOMER_ID]", "[LIFE_EVENT_ID]"),
     };
     // Make the request
     LifeEvent response = lifeEventServiceClient.GetLifeEvent(request);
     // End snippet
 }