Esempio n. 1
0
 /// <summary>Snippet for GetFeedItem</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetFeedItemResourceNames()
 {
     // Create client
     FeedItemServiceClient feedItemServiceClient = FeedItemServiceClient.Create();
     // Initialize request argument(s)
     FeedItemName resourceName = FeedItemName.FromCustomerFeedFeedItem("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]");
     // Make the request
     FeedItem response = feedItemServiceClient.GetFeedItem(resourceName);
 }
Esempio n. 2
0
        /// <summary>Snippet for GetFeedItemAsync</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 GetFeedItemResourceNamesAsync()
        {
            // Create client
            FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            FeedItemName resourceName = FeedItemName.FromCustomerFeedFeedItem("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]");
            // Make the request
            FeedItem response = await feedItemServiceClient.GetFeedItemAsync(resourceName);
        }
 /// <summary>Snippet for GetFeedItem</summary>
 public void GetFeedItemRequestObject()
 {
     // Snippet: GetFeedItem(GetFeedItemRequest, CallSettings)
     // Create client
     FeedItemServiceClient feedItemServiceClient = FeedItemServiceClient.Create();
     // Initialize request argument(s)
     GetFeedItemRequest request = new GetFeedItemRequest
     {
         ResourceNameAsFeedItemName = FeedItemName.FromCustomerFeedFeedItem("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]"),
     };
     // Make the request
     FeedItem response = feedItemServiceClient.GetFeedItem(request);
     // End snippet
 }
        /// <summary>Snippet for GetFeedItemAsync</summary>
        public async Task GetFeedItemResourceNamesAsync()
        {
            // Snippet: GetFeedItemAsync(FeedItemName, CallSettings)
            // Additional: GetFeedItemAsync(FeedItemName, CancellationToken)
            // Create client
            FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            FeedItemName resourceName = FeedItemName.FromCustomerFeedFeedItem("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]");
            // Make the request
            FeedItem response = await feedItemServiceClient.GetFeedItemAsync(resourceName);

            // End snippet
        }