Joke Collection Website - Joke collection - How to use the WeChat public platform?
How to use the WeChat public platform?
? * Create a menu
? */
Public static boolean create menu (string params) (
string access token = we chat . getaccesstoken();
string JSON str = http kit . post("/CGI-bin/menu/create? access_token=" + accessToken,params);
Map< string, object & gt map = json.parseobject (jsonstr, map.class);
Return "0". equals(map.get("errcode ")。 toString());
}
Public static void main(String[] args) {
String s = "{\" button \ ":[{\" name \ ":\ "entertainment \", \ "sub _ button \": [{\ "type \": \ "click \", \ "name \": \ " "Connotation jokes \", \ "key \": \ "m _ duanzi \"}, {\ "type \": \ "click \ ",\ "name \": \" hilarious picture \ ",\" key \ ":\" "type \": \ "click \", \ "name \ ":\" bus inquiry \ ",\" key. " M_sysmenu\"}]}, {\"name\":\ "message sample \", \ "sub _ button \": [{\ "type \": \ "click \", \"name\":\ "About the enterprise. "key \": \ "m _ imgmsg \"}, {\ "type \": \ "click \", \ "name \": \ "music message \", \ "key \": \ "m _ musicmsg \"}]
If (create menu)
LOGGER.info ("Menu created successfully!" );
} Otherwise {
LOGGER.info ("Menu creation failed!" );
}
}
Mianfa runs directly, simple!
- Previous article:Tell an interesting joke. Tell an interesting joke.
- Next article:Who can tell me a joke? Give points if you speak well!
- Related articles
- On English modal verbs.
- Please tell a cold joke that queuing can freeze to death. Thank you.
- A short story of a senior and a junior.
- What do you mean, the sleeves are dry and the sun and the moon grow in the pot?
- Eraser and lipstick fairy tale
- Two-part allegorical saying about laughter, two-part allegorical saying about laughter
- What is the reason for the recent sharp drop in pork?
- Nine humorous jokes are not only funny, but also profound.
- Funny jokes about bride price
- What is the strangest constitution you know?