/// <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.FromCustomerFeedItem("[CUSTOMER]", "[FEED_ITEM]"); // Make the request FeedItem response = await feedItemServiceClient.GetFeedItemAsync(resourceName); }
/// <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 GetFeedItemAsync() { // Create client FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/feedItems/[FEED_ITEM]"; // Make the request FeedItem response = await feedItemServiceClient.GetFeedItemAsync(resourceName); }
/// <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 GetFeedItemRequestObjectAsync() { // Create client FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync(); // Initialize request argument(s) GetFeedItemRequest request = new GetFeedItemRequest { ResourceNameAsFeedItemName = FeedItemName.FromCustomerFeedFeedItem("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]"), }; // Make the request FeedItem response = await feedItemServiceClient.GetFeedItemAsync(request); }
/// <summary>Snippet for GetFeedItemAsync</summary> public async Task GetFeedItemAsync() { // Snippet: GetFeedItemAsync(string, CallSettings) // Additional: GetFeedItemAsync(string, CancellationToken) // Create client FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/feedItems/[FEED_ID]~[FEED_ITEM_ID]"; // Make the request FeedItem response = await feedItemServiceClient.GetFeedItemAsync(resourceName); // 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 }
/// <summary>Snippet for MutateFeedItemsAsync</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 MutateFeedItemsAsync() { // Create client FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <FeedItemOperation> operations = new FeedItemOperation[] { new FeedItemOperation(), }; // Make the request MutateFeedItemsResponse response = await feedItemServiceClient.MutateFeedItemsAsync(customerId, operations); }
/// <summary>Snippet for GetFeedItemAsync</summary> public async Task GetFeedItemRequestObjectAsync() { // Snippet: GetFeedItemAsync(GetFeedItemRequest, CallSettings) // Additional: GetFeedItemAsync(GetFeedItemRequest, CancellationToken) // Create client FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync(); // Initialize request argument(s) GetFeedItemRequest request = new GetFeedItemRequest { ResourceNameAsFeedItemName = FeedItemName.FromCustomerFeedItem("[CUSTOMER]", "[FEED_ITEM]"), }; // Make the request FeedItem response = await feedItemServiceClient.GetFeedItemAsync(request); // End snippet }
/// <summary>Snippet for MutateFeedItemsAsync</summary> public async Task MutateFeedItemsAsync() { // Snippet: MutateFeedItemsAsync(string, IEnumerable<FeedItemOperation>, CallSettings) // Additional: MutateFeedItemsAsync(string, IEnumerable<FeedItemOperation>, CancellationToken) // Create client FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <FeedItemOperation> operations = new FeedItemOperation[] { new FeedItemOperation(), }; // Make the request MutateFeedItemsResponse response = await feedItemServiceClient.MutateFeedItemsAsync(customerId, operations); // End snippet }
/// <summary>Snippet for MutateFeedItemsAsync</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 MutateFeedItemsRequestObjectAsync() { // Create client FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync(); // Initialize request argument(s) MutateFeedItemsRequest request = new MutateFeedItemsRequest { CustomerId = "", Operations = { new FeedItemOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateFeedItemsResponse response = await feedItemServiceClient.MutateFeedItemsAsync(request); }
/// <summary>Snippet for MutateFeedItemsAsync</summary> public async Task MutateFeedItemsRequestObjectAsync() { // Snippet: MutateFeedItemsAsync(MutateFeedItemsRequest, CallSettings) // Additional: MutateFeedItemsAsync(MutateFeedItemsRequest, CancellationToken) // Create client FeedItemServiceClient feedItemServiceClient = await FeedItemServiceClient.CreateAsync(); // Initialize request argument(s) MutateFeedItemsRequest request = new MutateFeedItemsRequest { CustomerId = "", Operations = { new FeedItemOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateFeedItemsResponse response = await feedItemServiceClient.MutateFeedItemsAsync(request); // End snippet }