【文件属性】:
文件名称:onedrive-ruby:与 OneDrive 的 API 交互的 Ruby gem
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-09 01:10:53
Ruby
一个驱动器
欢迎来到您的新宝石! 在此目录中,您将找到将 Ruby 库打包成 gem 所需的文件。 将您的 Ruby 代码放在文件lib/onedrive 。 要试验该代码,请运行bin/console以获得交互式提示。
TODO:删除这个和上面的文字,并描述你的宝石
安装
将此行添加到应用程序的 Gemfile 中:
gem 'onedrive'
然后执行:
$ bundle
或者自己安装:
$ gem install onedrive
用法
此版本的 Onedrive Ruby 假定您已经有一个 OAuth 令牌可以使用。
您需要做的第一件事是使用令牌实例化 Onedrive::Client:
client = Onedrive :: Client . new token : 'abcdef'
使用该客户端,只需使用通过 Onedrive 的 REST HTTP
【文件预览】:
onedrive-ruby-master
----LICENSE.txt(1KB)
----lib()
--------onedrive()
--------onedrive.rb(209B)
----Gemfile(93B)
----spec()
--------onedrive_spec.rb(198B)
--------spec_helper.rb(78B)
----Rakefile(118B)
----.travis.yml(30B)
----README.md(2KB)
----.rspec(31B)
----onedrive.gemspec(964B)
----CODE_OF_CONDUCT.md(1KB)
----.gitignore(87B)
----bin()
--------console(333B)
--------setup(115B)