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)
SourceClass 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)
Sourceauth_oob_check(code : String)
Sourceauth_oob_check(code : String, &)
Sourceauth_oob_code(*, app_id, client_name : String | Nil = nil)
Sourcefile_types
Sourcefile_types=(file_types : Array(String))
Sourceget(path : String, *, params : QueryParamsType = QueryParamsType.new, client : Halite::Client | Nil = nil)
Sourcepost(path : String, *, form : Hash(String, String), client : Halite::Client | Nil = nil)
Sourcesort_keys
Sourcesort_keys=(sort_keys : Array(String))
Sourceverbose(value : Bool)
Sourceverbose
Sourceverbose=(verbose : Bool)
SourceInstance methods
account_info
Sourceaccount_settings
Sourceapp_id
Sourceapp_id=(app_id : Int64 | Nil)
Sourceapplication_secret
Sourceapplication_secret=(application_secret : String | Nil)
Sourceby_id(id : Int64)
Sourceby_id?(id : Int64)
Sourceby_path(path : String)
Sourceby_path?(path : String)
Sourcechildren(id : Int64)
Sourcefind_child_by_name(parent_id : Int64, name : String)
Sourcefind_child_by_name?(parent_id : Int64, name : String)
Sourceget(path : String, *, params : QueryParamsType = QueryParamsType.new)
Sourcepost(path : String, *, form : Hash(String, String) = {} of String => String)
Sourceroot
Sourcetoken
Sourcetoken=(token : String)
Source