0.0
Low commit activity in last 3 years
No release in over a year
Yandex.Disk API wrapper written in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 12.3.3
~> 3.0
~> 0.9
~> 6.1
~> 3.18, >= 3.18.1

Runtime

~> 2.3, >= 2.3.7
~> 1.7
 Project Readme

Yadisk - Yandex.Disk API client (ruby gem)

Gem Version Gem Ruby specs Coverage Status

Install

  gem install yadisk-client

Gemfile

  gem 'yadisk-client', '~> 1.11', '>= 1.11.2'

Development

  rake console

Available methods

Note **params not included in requests, but will be later
**attributes used in update_meta method only

client = Yadisk::Client.new(token: 'paste your token here')

client.disk.info
client.disk.upload(path:)
client.disk.upload_from_file(upload_link:, src:)
client.disk.upload_by_url(path:, url:)
client.disk.delete(path:)
client.disk.get_meta(path:, **params)

 # client.disk.update_meta(path: "dir_or_file_path", any_key_name: "value", other_key_name: "any_value")
client.disk.update_meta(path:, **attributes)
client.disk.create_dir(path:)
client.disk.copy(from:, to:)
client.disk.download(path:, **params)
client.disk.list_files(**params)
client.disk.last_uploaded(**params)
client.disk.move(from:, to:)
client.disk.list_public(**params)
client.disk.publish(path:)
client.disk.unpublish(path:)

client.public_resource.meta(public_key:, **params)
client.public_resource.link(public_key:, **params)
client.public_resource.save(public_key:, **params)

client.operation.status(operation_id:)

client.trash.delete(path:, **params)
client.trash.list(path:, **params)
client.trash.restore(path:)

TODOs

  • tests
  • examples
  • readme