Giter VIP home page Giter VIP logo

putio.rb's Introduction

putio-rb Build Status

A wrapper around put.io api v2 which allows you to access all your files and transfers.

Install

gem install putio-rb

Usage

First, you'll need to generate an access token, please see the documentation.

Configuration

require 'putio-rb'

Putio.configure do |config|
  config.access_token = 'SECRET TOKEN' # mandatory
  config.api_endpoint = 'https://foo.bar'
  config.api_version  = 'v1'
  config.user_agent   = 'kthxbye'
end

Files

# list all files
client.list_files
# also aliased as files
client.files
# list files in directory 123
client.files(options: { parent_id: 123 })
# search a file
client.search query: 'foo'
# complex search
client.search(query: 'jazz', options: { from: 'me,jack', ext: 'mp4', time: 'today' })
# find a file
client.file id: 123
# delete files 123 and 345
client.delete_files(123, 345)

Transfers

# list all transfers
client.list_transfers
# also aliased as transfers
client.transfers

Todo

Files

  • list files
  • search files
  • upload file
  • create folder
  • get file
  • delete file
  • rename file
  • move file
  • convert file to mp4
  • get mp4 status
  • download
  • zip & download
  • subtitles
  • download subtitles

Transfers

  • list transfers
  • add transfer
  • get transfer
  • retry transfer
  • cancel transfer
  • clean transfers

Friends

  • list friends
  • friend requests
  • send request
  • deny request

Account

  • info
  • settings

License

See LICENSE

putio.rb's People

Contributors

hubb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.