Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
        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
        }