Commit 41d89fc2 authored by Dr. Daniel Diaz Sánchez's avatar Dr. Daniel Diaz Sánchez
Browse files

fixing issue #2

parent 33334ee1
......@@ -460,7 +460,8 @@ public class TwitterCrawler {
.body("grant_type=client_credentials");
HttpResponse<String> res = postReq.asString();
String bearer_token = TwitterCrawler.deserializeJson(res.getBody());
String bearer_token = TwitterCrawler.deserializeJson(res.getBody());
System.out.println("Bearer Token : " + bearer_token);
/* we now have a brearer token so can make requests to Twitter */
......@@ -486,6 +487,9 @@ public class TwitterCrawler {
} catch (UnirestException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment