Class: Wechat::ShakeAround::Icon
- Inherits:
-
Object
- Object
- Wechat::ShakeAround::Icon
- Defined in:
- lib/wechat/shake_around/icon.rb
Overview
Icon 是图标管理的封装类。
Constant Summary
Constants included from Common
Class Method Summary collapse
Methods included from Common
normalize_date, normalize_device_id, normalize_page_ids
Methods included from Material
Class Method Details
.create(access_token, media) ⇒ Object
上传图片素材 mp.weixin.qq.com/wiki/5/e997428269ff189d8f9a4b9e177be2d9.html
Return hash format if success: {
data: { pic_url: <ICON_LINK> },
errcode: 0,
errmsg: 'success.'
}
media 图片完整路径。
22 23 24 25 26 27 28 |
# File 'lib/wechat/shake_around/icon.rb', line 22 def self.create(access_token, media) assert_present! :access_token, access_token assert_present! :media, media upload access_token, media, 'icon' end |