易信公众平台开发-创建自定义菜单

1.获取access token:

https://api.yixin.im/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET

 2.创建菜单:

地址:

https://api.yixin.im/cgi-bin/menu/create?access_token=ACCESS_TOKEN

 数据:

{ "button" : [ { "name" : "在线客服",
       "sub_button" : [ { "key" : "/dt2/ai.yx",
             "name" : "召唤精灵",
             "type" : "click"
           },
           { "key" : "/dt2/chat.yx",
             "name" : "人工服务",
             "type" : "click"
           }
         ]
     },
     { "key" : "/dt2/self.yx?id=36001",
       "name" : "自助服务",
       "type" : "click"
     },
     { "key" : "/dt2/self.yx",
       "name" : "帐号服务",
       "type" : "click"
     },
     { "name" : "其他",
       "sub_button" : [ { "key" : "/dt2/self.yx?id=77011",
             "name" : "將军令",
             "type" : "click"
           },
           { "key" : "/dt2/self.yx",
             "name" : "防盜教程",
             "type" : "click"
           },
           { "key" : "/dt2/self.yx",
             "name" : "防骗教程",
             "type" : "click"
           },
           { "key" : "/dt2/self.yx",
             "name" : "其他介紹",
             "type" : "click"
           },
           { "key" : "/dt2/logout.yx",
             "name" : "切换帐号",
             "type" : "click"
           }
         ]
     }
   ] }

 

你可能感兴趣的:(易信)