【文件属性】:
文件名称:esv_api:ESV api(http
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-08 08:06:10
Ruby
ESV_API
的API包装器
安装
gem 'esv_api'
用法
对于您的rails应用程序:
#Create an initializer:
ESV . configure do | config |
config . api_key = YOUR_API_KEY
end
@esv_text = ESV . passage_query ( params [ :passage ] || "John 1" , { 'include-footnotes' => 'false' , 'include-headings' => 'false' , 'include-subheadings' => 'false' , 'include-audio-link' => 'false' } )
查询类型
以下方法可用作查询类型:
passage_que
【文件预览】:
esv_api-master
----.gitignore(90B)
----esv_api.gemspec(618B)
----LICENSE.md(1KB)
----spec()
--------esv_api_spec.rb(185B)
--------helper.rb(35B)
--------esv_api()
----README.md(2KB)
----lib()
--------esv_api()
--------esv_api.rb(547B)
----Gemfile(38B)
----Rakefile(180B)