diff options
Diffstat (limited to 'src/io/OAuthRequester.java')
-rw-r--r-- | src/io/OAuthRequester.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io/OAuthRequester.java b/src/io/OAuthRequester.java index cefb199..2bf2f31 100644 --- a/src/io/OAuthRequester.java +++ b/src/io/OAuthRequester.java @@ -82,7 +82,7 @@ public class OAuthRequester extends AbstractRequester { /** * Gets access tokens from a PIN (out-of-band method). The PIN can be - * retrieved by visiting the URL from {@code getAuthURL()}. See + * retrieved by visiting the URL from {@literal getAuthURL()}. See * https://dev.twitter.com/docs/auth/pin-based-authorization * * @param pin The PIN as found on the page. @@ -138,7 +138,7 @@ public class OAuthRequester extends AbstractRequester { Response obj; try { obj = getJSON("application/rate_limit_status"); - return !obj.getResp().getAsJsonObject().has("errors"); + return !obj.getJson().getAsJsonObject().has("errors"); } catch (RateLimitException ex) { return false; } |