/// <summary>Snippet for GetUserInterest</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetUserInterest()
 {
     // Create client
     UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/userInterests/[USER_INTEREST_ID]";
     // Make the request
     UserInterest response = userInterestServiceClient.GetUserInterest(resourceName);
 }
 /// <summary>Snippet for GetUserInterest</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetUserInterestResourceNames()
 {
     // Create client
     UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.Create();
     // Initialize request argument(s)
     UserInterestName resourceName = UserInterestName.FromCustomerUserInterest("[CUSTOMER_ID]", "[USER_INTEREST_ID]");
     // Make the request
     UserInterest response = userInterestServiceClient.GetUserInterest(resourceName);
 }
 /// <summary>Snippet for GetUserInterest</summary>
 public void GetUserInterestResourceNames()
 {
     // Snippet: GetUserInterest(UserInterestName, CallSettings)
     // Create client
     UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.Create();
     // Initialize request argument(s)
     UserInterestName resourceName = UserInterestName.FromCustomerUserInterest("[CUSTOMER]", "[USER_INTEREST]");
     // Make the request
     UserInterest response = userInterestServiceClient.GetUserInterest(resourceName);
     // End snippet
 }
 /// <summary>Snippet for GetUserInterest</summary>
 public void GetUserInterest()
 {
     // Snippet: GetUserInterest(string, CallSettings)
     // Create client
     UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER]/userInterests/[USER_INTEREST]";
     // Make the request
     UserInterest response = userInterestServiceClient.GetUserInterest(resourceName);
     // End snippet
 }
Exemplo n.º 5
0
 /// <summary>Snippet for GetUserInterest</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetUserInterestRequestObject()
 {
     // Create client
     UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.Create();
     // Initialize request argument(s)
     GetUserInterestRequest request = new GetUserInterestRequest
     {
         ResourceNameAsUserInterestName = UserInterestName.FromCustomerUserInterest("[CUSTOMER]", "[USER_INTEREST]"),
     };
     // Make the request
     UserInterest response = userInterestServiceClient.GetUserInterest(request);
 }