public Photo getInfo ( String photoId , String secret ) throws FlickrException { Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_GET_INFO ) ; parameters . put ( "photo_id" , photoId ) ; if ( secret != null ) { parameters . put ( "secret" , secret ) ; } Response response = transport . get ( transport . getPath ( ) , parameters , apiKey , sharedSecret ) ; if ( response . isError ( ) ) { throw new FlickrException ( response . getErrorCode ( ) , response . getErrorMessage ( ) ) ; } Element photoElement = response . getPayload ( ) ; return PhotoUtils . createPhoto ( photoElement ) ; }
Get all info for the specified photo .