From b0c70433d1547d3025a945733caea35d6743b268 Mon Sep 17 00:00:00 2001 From: Michael Winsauer Date: Thu, 13 Dec 2018 07:55:52 +0100 Subject: [PATCH] Add curl example to Twitter README --- service-twitter/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.43.0