Query
Back

From WeChat Official Account Admin Platform
Jump to: navigation, search

After a custom-defined menu is created, developers can query the menu structure using this API.

Request Description

HTTP request method: GET 
https://api.wechat.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN

Return Description

An example of a successful JSON response is as follows:

{"menu":{"button":[{"type":"click","name":"Daily Song","key":"V1001_TODAY_MUSIC","sub_button":[]},{"type":"click","name":" Artist Profile ","key":"V1001_TODAY_SINGER","sub_button":[]},{"name":"Menu","sub_button":[{"type":"view","name":"Search","url":"http://www.soso.com/","sub_button":[]},{"type":"view","name":"Video","url":"http://v.qq.com/","sub_button":[]},{"type":"click","name":"Like us","key":"V1001_GOOD","sub_button":[]}]}]}}

Return Codes

Developer Guide
Custom-defined Menu
WeChat JS-SDK