openload
1.0.0
#打开加载
这是一个 gem,提供了对 openload.co api 的轻松访问。
#all of this methods returns a OpenStruct
example :
openload = OpenLoad . new ( 'login' , 'key' )
acc = openload . account_info
email = acc . results . email
status_code = acc . status # returns the status code too
message = acc . msg
# Get the info about your acc
def account_info
#Get the ticket to download a file
def download_ticket ( file )
# This method return the info of a file
# Warning: this method rertuns a hash
def file_info ( file )
# This method return a link that you can make uploads.
# Warning: this links expire in a few hours, always check the .
def upload_link ( folder = nil , sha1 = nil , httponly = nil )
# This method make a upload of a link from the web
# Remember: You need a login and key api to use this method.
def remote_upload ( url , folder = nil , headers = nil )
# This method cheks the status of the remote uploads.
def check_remote_upload_status ( id = nil , limit = nil )
# This method return a list of all folders.
# You need a login and api kei
# This method return returns a hash
def folder_list ( folder = nil )
# This method convert files to stream format (mp4/h.264)
def convert_to_stream ( file )
# Show a list with the covered files
def show_converted_files ( folder = nil )
# Get the thumbnail
def get_splash_image ( file )
版权所有 (c) 2016 布鲁诺·特里波洛尼
特此免费授予获得本软件和相关文档文件(“软件”)副本的任何人不受限制地使用本软件,包括但不限于使用、复制、修改、合并的权利、发布、分发、再许可和/或销售软件的副本,并允许向其提供软件的人员这样做,但须满足以下条件:
上述版权声明和本许可声明应包含在本软件的所有副本或主要部分中。
本软件按“原样”提供,不提供任何明示或暗示的保证,包括但不限于适销性、特定用途的适用性和不侵权的保证。在任何情况下,作者或版权持有者均不对因本软件或本软件中的使用或其他交易而产生或与之相关的任何索赔、损害或其他责任负责,无论是合同、侵权行为还是其他行为。软件。