public async Task GetPhotoAsync() { // Snippet: GetPhotoAsync(string,PhotoView,CallSettings) // Additional: GetPhotoAsync(string,PhotoView,CancellationToken) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync(); // Initialize request argument(s) string photoId = ""; PhotoView view = PhotoView.Basic; // Make the request Photo response = await streetViewPublishServiceClient.GetPhotoAsync(photoId, view); // End snippet }
public async Task GetPhotoAsync_RequestObject() { // Snippet: GetPhotoAsync(GetPhotoRequest,CallSettings) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync(); // Initialize request argument(s) GetPhotoRequest request = new GetPhotoRequest { PhotoId = "", View = PhotoView.Basic, }; // Make the request Photo response = await streetViewPublishServiceClient.GetPhotoAsync(request); // End snippet }