class

PutIO

Inherits Reference < Object

Constants

PER_PAGE = 1000
VERSION = "0.1.0"

Constructors

new(token : String, app_id : Int64 | Nil = nil, application_secret : Nil | String = nil, client : Halite::Client | Nil = nil)
Source

Class methods

auth_oob(app_id, *, client_name : String | Nil = nil, prompt : String | Nil = "Go to https://put.io/link and enter the code: %s", io : IO = STDERR)
Source
auth_oob_check(code : String)
Source
auth_oob_check(code : String, &)
Source
auth_oob_code(*, app_id, client_name : String | Nil = nil)
Source
auth_oob_code(*, app_id, client_name : String | Nil = nil, &)

yield version

Source
file_types
Source
file_types=(file_types : Array(String))
Source
get(path : String, *, params : QueryParamsType = QueryParamsType.new, client : Halite::Client | Nil = nil)
Source
post(path : String, *, form : Hash(String, String), client : Halite::Client | Nil = nil)
Source
sort_keys
Source
sort_keys=(sort_keys : Array(String))
Source
verbose(value : Bool)
Source
verbose
Source
verbose=(verbose : Bool)
Source

Instance methods

account_info
Source
account_settings
Source
app_id
Source
app_id=(app_id : Int64 | Nil)
Source
application_secret
Source
application_secret=(application_secret : String | Nil)
Source
by_id(id : Int64)
Source
by_id?(id : Int64)
Source
by_path(path : String)
Source
by_path?(path : String)
Source
children(id : Int64)
Source
client

property dbfile : Path

Source
client=(client : Halite::Client)

property dbfile : Path

Source
find_child_by_name(parent_id : Int64, name : String)
Source
find_child_by_name?(parent_id : Int64, name : String)
Source
get(path : String, *, params : QueryParamsType = QueryParamsType.new)
Source
list(parent_id : Int32 = -1, *, per_page : Int32 = PutIO::PER_PAGE, sort_by : String | Nil = nil, file_types : Array(String) | Nil = nil, stream_url : Bool = false, stream_url_parent : Bool = false, mp4_stream_url : Bool = false, mp4_stream_url_parent : Bool = false, hidden : Bool = false, mp4_status : Bool = false)
Source
list(parent_id : Int32 = -1, *, per_page : Int32 = PutIO::PER_PAGE, sort_by : String | Nil = nil, file_types : Array(String) | Nil = nil, stream_url : Bool = false, stream_url_parent : Bool = false, mp4_stream_url : Bool = false, mp4_stream_url_parent : Bool = false, hidden : Bool = false, mp4_status : Bool = false, &)
Source
post(path : String, *, form : Hash(String, String) = {} of String => String)
Source
root
Source
token
Source
token=(token : String)
Source
tree(parent_id : Int32 = -1, *, per_page : Int32 = PutIO::PER_PAGE, sort_by : String | Nil = nil, file_types : Array(String) | Nil = nil, stream_url : Bool = false, stream_url_parent : Bool = false, mp4_stream_url : Bool = false, mp4_stream_url_parent : Bool = false, hidden : Bool = false, mp4_status : Bool = false)
Source

Nested types