示例#1
0
        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
        }
示例#2
0
        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
        }