getMedia
public MapsPlaces.Places.Photos.GetMedia getMedia(String name)
throws IOException
Get a photo media with a photo reference string.
Create a request for the method "photos.getMedia".
This request holds the parameters needed by the places server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
name - Required. The resource name of a photo media in the format:
`places/{place_id}/photos/{photo_reference}/media`. The resource name of a photo as
returned in a Place object's `photos.name` field comes with the format
`places/{place_id}/photos/{photo_reference}`. You need to append `/media` at the end of
the photo resource to get the photo media resource name.
- Returns:
- the request
- Throws:
IOException