'button = [
"type":"click",
"name":"ä»æ¥æ­æ²",
"key":"V1001_TODAY_MUSIC"
"name":"èå",
"sub_button":[
"type":"view",
"name":"æçŽ¢",
"url":"http://www.soso.com/"
"type":"view",
"name":"è§é¢",
"url":"http://v.qq.com/"
"type":"click",
"name":"èµäžäžæä»¬",
"key":"V1001_GOOD"
matchrule = {
"group_id":"2",
"sex":"1",
"country":"äž­åœ",
"province":"å¹¿äž",
"city":"å¹¿å·",
"client_platform_type":"2",
"language":"zh_CN"
client.create_custom_menu(button, matchrule)
:param menu_data: åŠäžæç€ºç Python å­åž
:param matchrule: åŠäžæç€ºçå¹éè§å
:return: è¿åç JSON æ°æ®å'

def create_custom_menu(self, menu_data, matchrule):

    return self.post(url='https://api.weixin.qq.com/cgi-bin/menu/addconditional', data={'button': menu_data, 'matchrule': matchrule})
