Skip to content

Commit fc69fc2

Browse files
author
boncey
committed
Ensure 'tokensecret' is set in example
1 parent 7f74bbc commit fc69fc2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Flickr4Java/src/examples/java/ActivityExample.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
import org.xml.sax.SAXException;
1414

15-
import javax.xml.parsers.ParserConfigurationException;
16-
1715
import java.io.IOException;
1816
import java.io.InputStream;
1917
import java.util.ArrayList;
@@ -52,6 +50,7 @@ public ActivityExample() throws IOException {
5250
Auth auth = new Auth();
5351
auth.setPermission(Permission.READ);
5452
auth.setToken(properties.getProperty("token"));
53+
auth.setTokenSecret(properties.getProperty("tokensecret"));
5554
requestContext.setAuth(auth);
5655
Flickr.debugRequest = false;
5756
Flickr.debugStream = false;

0 commit comments

Comments
 (0)