Sha256: ff8965b7c65beb91079762da6584ff4ddd41d9aa949c7cfb92018e3f410958dc
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
## # Icon 是图标管理的封装类。 class Wechat::ShakeAround::Icon extend Wechat::Core::Common extend Wechat::ShakeAround::Common extend Wechat::ShakeAround::Material ## # 上传图片素材 # http://mp.weixin.qq.com/wiki/5/e997428269ff189d8f9a4b9e177be2d9.html # # Return hash format if success: # { # data: { pic_url: <ICON_LINK> }, # errcode: 0, # errmsg: 'success.' # } # # media 图片完整路径。 def self.create(access_token, media) assert_present! :access_token, access_token assert_present! :media, media upload access_token, media, 'icon' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wechat-shake_around-1.1 | lib/wechat/shake_around/icon.rb |
wechat-shake_around-1.0 | lib/wechat/shake_around/icon.rb |
wechat-shake_around-0.9.2 | lib/wechat/shake_around/icon.rb |