public void BatchGetPhotos() { // Snippet: BatchGetPhotos(IEnumerable<string>,PhotoView,CallSettings) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = StreetViewPublishServiceClient.Create(); // Initialize request argument(s) IEnumerable <string> photoIds = new List <string>(); PhotoView view = PhotoView.Basic; // Make the request BatchGetPhotosResponse response = streetViewPublishServiceClient.BatchGetPhotos(photoIds, view); // End snippet }
public void BatchGetPhotos_RequestObject() { // Snippet: BatchGetPhotos(BatchGetPhotosRequest,CallSettings) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = StreetViewPublishServiceClient.Create(); // Initialize request argument(s) BatchGetPhotosRequest request = new BatchGetPhotosRequest { PhotoIds = { }, View = PhotoView.Basic, }; // Make the request BatchGetPhotosResponse response = streetViewPublishServiceClient.BatchGetPhotos(request); // End snippet }
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 }