/// <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.FromCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]", "[FEED_ITEM_TARGET_TYPE]", "[FEED_ITEM_TARGET_ID]"); // 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.FromCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]", "[FEED_ITEM_TARGET_TYPE]", "[FEED_ITEM_TARGET_ID]"), }; // Make the request FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(request); }
/// <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.FromCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]", "[FEED_ITEM_TARGET_TYPE]", "[FEED_ITEM_TARGET_ID]"), }; // Make the request FeedItemTarget response = feedItemTargetServiceClient.GetFeedItemTarget(request); // End snippet }
/// <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.FromCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]", "[FEED_ITEM_TARGET_TYPE]", "[FEED_ITEM_TARGET_ID]"); // Make the request FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(resourceName); // End snippet }