33 */
44package com .flickr4java .flickr .test ;
55
6+ import com .flickr4java .flickr .Flickr ;
67import com .flickr4java .flickr .FlickrException ;
78import com .flickr4java .flickr .Response ;
89import com .flickr4java .flickr .Transport ;
910import com .flickr4java .flickr .people .User ;
1011
1112import org .w3c .dom .Element ;
1213import org .w3c .dom .Text ;
13- import org .xml .sax .SAXException ;
1414
1515import java .util .Collection ;
1616import java .util .HashMap ;
@@ -52,6 +52,7 @@ public TestInterface(String apiKey, String sharedSecret, Transport transportAPI)
5252 public Collection <Element > echo (Map <String , String > params ) throws FlickrException {
5353 Map <String , Object > parameters = new HashMap <String , Object >();
5454 parameters .put ("method" , METHOD_ECHO );
55+ parameters .put (Flickr .API_KEY , apiKey );
5556 parameters .putAll (params );
5657
5758 Response response = transport .post (transport .getPath (), parameters , apiKey , sharedSecret );
@@ -65,7 +66,6 @@ public Collection<Element> echo(Map<String, String> params) throws FlickrExcepti
6566 * A testing method which checks if the caller is logged in then returns a User object.
6667 *
6768 * @return The User object
68- * @throws SAXException
6969 * @throws FlickrException
7070 */
7171 public User login () throws FlickrException {
0 commit comments