Skip to content

How can I use JeffBot in my code?

Joshua Zenn edited this page May 11, 2016 · 3 revisions

JeffBot has a simple API. Simply POST to https://jeffchatbot.herokuapp.com/api/v1/post with the variable arg set to your query. Then the response will be returned in plain-text!

cURL

curl -X POST -d 'arg=Your query here'

Ruby

require 'rest-client'

puts RestClient.post('https://jeffchatbot.herokuapp.com/api/v1/post', "arg" => "Your query here")
Clone this wiki locally