public void CreatePhoto() { // Snippet: CreatePhoto(Photo,CallSettings) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = StreetViewPublishServiceClient.Create(); // Initialize request argument(s) Photo photo = new Photo(); // Make the request Photo response = streetViewPublishServiceClient.CreatePhoto(photo); // End snippet }
public void CreatePhoto_RequestObject() { // Snippet: CreatePhoto(CreatePhotoRequest,CallSettings) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = StreetViewPublishServiceClient.Create(); // Initialize request argument(s) CreatePhotoRequest request = new CreatePhotoRequest { Photo = new Photo(), }; // Make the request Photo response = streetViewPublishServiceClient.CreatePhoto(request); // End snippet }