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 布魯諾特里波洛尼
特此免費授予任何獲得本軟體和相關文件文件(「軟體」)副本的人不受限制地使用本軟體,包括但不限於使用、複製、修改、合併的權利、發布、分發、再授權和/或銷售軟體的副本,並允許向其提供軟體的人員這樣做,但須滿足以下條件:
上述版權聲明和本授權聲明應包含在本軟體的所有副本或主要部分中。
本軟體以「現況」提供,不提供任何明示或暗示的保證,包括但不限於適銷性、特定用途的適用性和不侵權的保證。 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE軟體.