diff options
author | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-22 16:00:18 +0200 |
---|---|---|
committer | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-22 16:00:18 +0200 |
commit | 783f42b52875e09181a97e12b1602db34ce47a09 (patch) | |
tree | 3d2665bf7dbf0d3c766db17ad677b59396146f82 | |
parent | e2e02b1bbb745f3eb8316f89a80cecb1459b5568 (diff) | |
download | TwitterDataAnalytics-783f42b52875e09181a97e12b1602db34ce47a09.tar.gz |
Fixed: Twitter API didn't throw RateLimitException.
-rw-r--r-- | src/mining/TwitterApi.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mining/TwitterApi.java b/src/mining/TwitterApi.java index 8889c2f..d145a86 100644 --- a/src/mining/TwitterApi.java +++ b/src/mining/TwitterApi.java @@ -2,6 +2,7 @@ package mining; import io.BearerRequester; import io.OAuthRequester; +import io.RateLimitException; import io.Requester; import io.Response; import java.io.IOException; @@ -12,7 +13,6 @@ import org.apache.commons.codec.Charsets; import org.apache.http.NameValuePair; import org.apache.http.client.utils.URLEncodedUtils; import org.apache.http.message.BasicNameValuePair; -import org.json.JSONObject; import support.ConsumerKeySecret; import support.OAuthAccessTokenSecret; import utils.Configuration; @@ -174,7 +174,7 @@ public class TwitterApi { return this.resource + "?" + URLEncodedUtils.format(params, Charsets.UTF_8); } - public Response request() throws IOException { + public Response request() throws IOException, RateLimitException { return TwitterApi.this.requester.getJSON(toString()); } } |