instapaper:用于Instapaper的完整API的Ruby客户端

时间:2021-05-28 02:59:48
【文件属性】:
文件名称:instapaper:用于Instapaper的完整API的Ruby客户端
文件大小:41KB
文件格式:ZIP
更新时间:2021-05-28 02:59:48
instapaper Ruby 影印纸 Instapaper是用于与进行交互的Ruby包装。 请注意,对Full API的访问仅限于Instapaper订户。 安装 gem install instapaper 用法 该库完全支持通过Instapaper的Full API公开的所有方法。 请注意,Instapaper的API不支持请求令牌/授权工作流程。 要获取访问令牌,请使用access_token方法。 1.0.0的变化 如果您使用的是该库的早期版本,则1.x版中已进行了很多更改。 虽然不是完全重写,但基于编写API库的经验,我已经更改了许多内容: 用Faraday换成http.rb 响应现在返回自定义类,而不是Hashie :: Rash对象 大多数API方法的行为都更加清晰(例如, #star_bookmark而不是#star ) 基于模块的配置和调用已被删除,您现在需要实例化一个Instapaper:
【文件预览】:
instapaper-main
----.gemtest(0B)
----Rakefile(260B)
----.github()
--------workflows()
----.rubocop.yml(1KB)
----.yardopts(31B)
----Gemfile(291B)
----instapaper.gemspec(950B)
----.rspec(32B)
----examples()
--------authorization_flow.rb(588B)
--------verify_oauth_credentials.rb(357B)
--------obtain_an_access_token.rb(359B)
--------obtain_a_list_of_folders.rb(391B)
----spec()
--------instapaper()
--------spec_helper.rb(627B)
--------fixtures()
----LICENSE.md(1KB)
----.gitignore(86B)
----lib()
--------instapaper.rb(28B)
--------instapaper()
----README.md(4KB)
----script()
--------console(353B)

网友评论