Class: Wechat::ShakeAround::License
- Inherits:
-
Object
- Object
- Wechat::ShakeAround::License
- Defined in:
- lib/wechat/shake_around/license.rb
Overview
License 是许可证管理的封装类。
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: <LICENSE_LINK> },
errcode: 0,
errmsg: 'success.'
}
media 图片完整路径。
22 23 24 25 26 27 28 |
# File 'lib/wechat/shake_around/license.rb', line 22 def self.create(access_token, media) assert_present! :access_token, access_token assert_present! :media, media upload access_token, media, 'license' end |