Lanxin is Real-time communication application for enterprise internal communicate,with full client support,including Android, iOS, Windows,Mac,Web etc.The Openplatform give the thirdpart company provide service through Lanxin.More information please refer to http://lanxin.cn.
Add this line to your application's Gemfile:
gem 'lanxin_open'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lanxin_open
configure the LanxinOpen while init,like following code;
LanxinOpen.config do
host "https://open-dev.lanxin.cn" #"http://118.192.68.146"
port ""
use_new_json true
end
then while you want to call the interface,call like this
open = LanxinOpen.new
skey = open.fetch_skey("token","devkey")
puts "fetch skey: #{skey}"
- Fork it ( https://github.com/[my-github-username]/lanxin_open/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request