public async Task BatchGetPhotosAsync() { // Snippet: BatchGetPhotosAsync(IEnumerable<string>,PhotoView,CallSettings) // Additional: BatchGetPhotosAsync(IEnumerable<string>,PhotoView,CancellationToken) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync(); // Initialize request argument(s) IEnumerable <string> photoIds = new List <string>(); PhotoView view = PhotoView.Basic; // Make the request BatchGetPhotosResponse response = await streetViewPublishServiceClient.BatchGetPhotosAsync(photoIds, view); // End snippet }
public async Task BatchGetPhotosAsync_RequestObject() { // Snippet: BatchGetPhotosAsync(BatchGetPhotosRequest,CallSettings) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync(); // Initialize request argument(s) BatchGetPhotosRequest request = new BatchGetPhotosRequest { PhotoIds = { }, View = PhotoView.Basic, }; // Make the request BatchGetPhotosResponse response = await streetViewPublishServiceClient.BatchGetPhotosAsync(request); // End snippet }