Skip to content

Instantly share code, notes, and snippets.

@pap
Created November 19, 2015 10:59
Show Gist options
  • Select an option

  • Save pap/afdd3dfb891d42490a71 to your computer and use it in GitHub Desktop.

Select an option

Save pap/afdd3dfb891d42490a71 to your computer and use it in GitHub Desktop.
# pubsub request
http://localhost:4567/api/v1/pubsub/twitter
json: {"search":"myelixirstatus", "number": 20}
# response
{
uuid: "1bab11d8-f4f9-45c3-ace5-cffc907135b2"
search_string: "myelixirstatus"
number_of_tweets: 20
requested_at: "2015-11-18 17:48:22 +0000"
}
# sidekiq request
http://localhost:4567/api/v1/sidekiq/twitter
{"search":"myelixirstatus", "number": 20}
# response
{
uuid: "9bfa7f79-536d-4e12-912c-4bc93b9c0625"
search_string: "onfido"
number_of_tweets: 20
requested_at: "2015-11-18 17:48:57 +0000"
}
# rpc request
http://localhost:4567/api/v1/rpc/twitter
{"search":"onfido", "number": 20}
# response
# try it out ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment