Module: ReCaptcha::API
- Included in:
- Application
- Defined in:
- lib/re_captcha/api.rb
Instance Method Summary collapse
Instance Method Details
#post(path, params, options: {}, end_point: api_endpoint) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/re_captcha/api.rb', line 5 def post(path, params, options: {}, end_point: api_endpoint) http_request do uri = URI(end_point).merge(path).to_s resource = RestClient::Resource.new(uri, .merge()) response = resource.post params.merge(default_params) JSON.parse response end end |