Module: WxExt::Api::Menu
Overview
User api of weixin.
Instance Method Summary collapse
-
#create_menu(access_token, menu_hash) ⇒ Hash
Create menu via post.
-
#del_menu(access_token) ⇒ Hash
Del menu via get.
-
#menus(access_token) ⇒ Hash
Get menus via get.
Instance Method Details
#create_menu(access_token, menu_hash) ⇒ Hash
Create menu via post.
19 20 21 22 23 |
# File 'lib/wx_ext/api/menu.rb', line 19 def (access_token, ) url = 'https://api.weixin.qq.com/cgi-bin/menu/create'\ "?access_token=#{access_token}" Helper.http_post(url, .to_json) end |