Skip to content

Instantly share code, notes, and snippets.

# encoding: utf-8
import json
import urllib
import urllib2
appid = "xxx"
secret = "xxx"
access_url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s"
menu_url = "https://api.weixin.qq.com/cgi-bin/menu/create?%s"