Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
distributed-computing-assignements
2-restAPIs-2-unirest-twitter
Commits
41d89fc2
Commit
41d89fc2
authored
Oct 20, 2016
by
DANIEL DIAZ SANCHEZ
Browse files
fixing issue #2
parent
33334ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
41d89fc2
...
...
@@ -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();
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment