/// <summary>Snippet for GetFeedItemTarget</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetFeedItemTargetResourceNames()
 {
     // Create client
     FeedItemTargetServiceClient feedItemTargetServiceClient = FeedItemTargetServiceClient.Create();
     // Initialize request argument(s)
     FeedItemTargetName resourceName = FeedItemTargetName.FromCustomerFeedItemTarget("[CUSTOMER]", "[FEED_ITEM_TARGET]");
     // Make the request
     FeedItemTarget response = feedItemTargetServiceClient.GetFeedItemTarget(resourceName);
 }
        /// <summary>Snippet for GetFeedItemTargetAsync</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 GetFeedItemTargetRequestObjectAsync()
        {
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetFeedItemTargetRequest request = new GetFeedItemTargetRequest
            {
                ResourceNameAsFeedItemTargetName = FeedItemTargetName.FromCustomerFeedItemTarget("[CUSTOMER]", "[FEED_ITEM_TARGET]"),
            };
            // Make the request
            FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(request);
        }
コード例 #3
0
 /// <summary>Snippet for GetFeedItemTarget</summary>
 public void GetFeedItemTargetRequestObject()
 {
     // Snippet: GetFeedItemTarget(GetFeedItemTargetRequest, CallSettings)
     // Create client
     FeedItemTargetServiceClient feedItemTargetServiceClient = FeedItemTargetServiceClient.Create();
     // Initialize request argument(s)
     GetFeedItemTargetRequest request = new GetFeedItemTargetRequest
     {
         ResourceNameAsFeedItemTargetName = FeedItemTargetName.FromCustomerFeedItemTarget("[CUSTOMER]", "[FEED_ITEM_TARGET]"),
     };
     // Make the request
     FeedItemTarget response = feedItemTargetServiceClient.GetFeedItemTarget(request);
     // End snippet
 }
コード例 #4
0
        /// <summary>Snippet for GetFeedItemTargetAsync</summary>
        public async Task GetFeedItemTargetResourceNamesAsync()
        {
            // Snippet: GetFeedItemTargetAsync(FeedItemTargetName, CallSettings)
            // Additional: GetFeedItemTargetAsync(FeedItemTargetName, CancellationToken)
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            FeedItemTargetName resourceName = FeedItemTargetName.FromCustomerFeedItemTarget("[CUSTOMER]", "[FEED_ITEM_TARGET]");
            // Make the request
            FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(resourceName);

            // End snippet
        }