From: Fabian Eichhorner Date: Thu, 13 Dec 2018 09:09:03 +0000 (+0100) Subject: Merge branch '42-working-test-case-into-readme' of https://hyde.infosys.tuwien.ac... X-Git-Tag: code-freeze~20^2~3 X-Git-Url: https://git.somenet.org/pub/jan/aic18.git/commitdiff_plain/6feb3a21d3b96fc506fdbe8f902f232d2c431f2f?hp=9f74b6ab2b2a3be9821fc015bceb69c5fe8d702a Merge branch '42-working-test-case-into-readme' of https://hyde.infosys.tuwien.ac.at/aic18/G6T4 into 42-working-test-case-into-readme --- diff --git a/service-twitter/README.md b/service-twitter/README.md index a2f641b..79630d0 100644 --- a/service-twitter/README.md +++ b/service-twitter/README.md @@ -1,15 +1,24 @@ # Twitter Service + ## API -You can use the search under: [http://localhost:8084/search/tweets.json?q=Google](http://localhost:8080/search/tweets.json?q=Google) +You can use the search under [http://localhost:8084/search/tweets.json?q=Google](http://localhost:8080/search/tweets.json?q=Google) where `q` is your search string. It mainly mirrors the search API from Twitter. My implementation contains some basic fields with the same names as in the official API. If you need more, please let me know. +### Example + +`curl -vs http://localhost:8084/search/tweets.json?q=Google ` + +Pipe it into e.g. `jq` for a more readable output. + + + ## API Keys Unfortunately you have to provide your own API Keys, as sharing them is forbidden. In the worst case there would be five