【文件属性】:
文件名称:bcash-ruby:BCash API 的 Ruby 包装器
文件大小:39KB
文件格式:ZIP
更新时间:2021-06-14 21:55:13
Ruby
#Bcash Ruby
Bcash API 的 Ruby 包装器。 这个 gem 为帐户和交易方法提供了包装器。
安装
gem install bcash-ruby
资源
配置
Bcash . configure do | b |
b . email = Rails . application . secrets . bcash [ "email" ]
b . token = Rails . application . secrets . bcash [ "token" ]
end
使用示例
按 CPF 搜索帐户
client = Bcash :: Client . new
response = client . search_account_by_cpf ( '07411111111' )
response . code # 1
response . cpf
【文件预览】:
bcash-ruby-master
----.gitignore(185B)
----.rspec(41B)
----bcash-ruby.gemspec(1KB)
----.travis.yml(58B)
----LICENSE(18KB)
----spec()
--------cases()
--------spec_helper.rb(737B)
--------vcr_cassettes()
----README.md(4KB)
----lib()
--------bcash.rb(346B)
--------bcash()
----Gemfile(132B)
----Rakefile(137B)