updated the module classyfire_api
This commit is contained in:
parent
e4d467db5c
commit
68c662759a
|
@ -4,8 +4,6 @@ require 'RestClient'
|
||||||
module ClassyFireAPI
|
module ClassyFireAPI
|
||||||
URL = 'http://classyfire.wishartlab.com'
|
URL = 'http://classyfire.wishartlab.com'
|
||||||
|
|
||||||
# URL = 'http://localhost:3000'
|
|
||||||
|
|
||||||
def ClassyFireAPI.submit_query(label,input)
|
def ClassyFireAPI.submit_query(label,input)
|
||||||
begin
|
begin
|
||||||
RestClient.post URL+'/queries', {:label => label, :query_input => input}.to_json, :accept => :json, :content_type => :json
|
RestClient.post URL+'/queries', {:label => label, :query_input => input}.to_json, :accept => :json, :content_type => :json
|
||||||
|
|
Loading…
Reference in New Issue