edoc2-api Gem Version

An unofficial edoc2 API wrap gem.

Installation

Add this line to your application's Gemfile:

gem 'edoc2-api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install edoc2-api

Usage

Config

Create config/initializers/edoc2-api.rb and put following configurations into your Rails project.

Edoc2.apikey     = 'your_api_key'
Edoc2.secretkey  = 'your_secret_key'
Edoc2.base_url  = 'http://api.yunxuetang.com.cn' # notice no / at end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/thape-cn/edoc2-api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.