Class: KHL::HTTP::Asset

Inherits:
Base
  • Object
show all
Defined in:
lib/khl/http/asset.rb

Overview

Constant Summary

Constants inherited from Base

Base::API_VERSION, Base::BASE_URL, Base::END_POINT

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize, #post, #post_file

Constructor Details

This class inherits a constructor from KHL::HTTP::Base

Instance Method Details

#create(options = {}) ⇒ KHL::HTTP::Response

上传媒体文件

Parameters:

  • options (Hash) (defaults to: {})

    可选参数

Options Hash (options):

  • :file (IO)

    目前支持 图片,视频(.mp4 .mov),文件

Returns:



14
15
16
# File 'lib/khl/http/asset.rb', line 14

def create(options = {})
  post_file(options)
end