金数据接口
与金数据对接数据接口,官方文档请查阅 https://help.jinshuju.net/articles/api-intro
安装
-
在你的
shard.yml
中增加依赖:dependencies: jinshuju: github: your-github-user/jinshuju
-
运行
shards install
使用
require "jinshuju"
api = Jinshuju::API.new(host: "somedomain.jinshuju.com", key: "apikey", secret: "apisecret")
puts api.all_entries("Ex2t1y")
贡献
- Fork it (https://github.com/your-github-user/jinshuju/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