public String lookupUser ( String url ) throws FlickrException { Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_LOOKUP_USER ) ; parameters . put ( "url" , url ) ; Response response = transport . get ( transport . getPath ( ) , parameters , apiKey , sharedSecret ) ; if ( response . isError ( ) ) { throw new FlickrException ( response . getErrorCode ( ) , response . getErrorMessage ( ) ) ; } Element payload = response . getPayload ( ) ; Element groupnameElement = ( Element ) payload . getElementsByTagName ( "username" ) . item ( 0 ) ; return ( ( Text ) groupnameElement . getFirstChild ( ) ) . getData ( ) ; }
Lookup the username for the specified User URL .