Many users do not know how to create custom menus because custom menus can be activated now. Let me share with you how to create a custom menu today! The following code shows you how to create a custom menu. Let me share with you how to create a custom menu today! The following code is used:
"; Var_dump (post ($ url, $ jsonData); function post ($ url, $ jsonData) {$ ch = curl_init ($ url); curl_setopt ($ ch, CURLOPT_POST, 1); curl_setopt ($ ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt ($ ch, CURLOPT_POSTFIELDS, $ jsonData); curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt ($ ch, CURLOPT_HTTPHEADER, array ('content-Type: application/json'); $ result = curl_exec ($ ch); curl_close ($ ch ); return $ result ;}
After running successfully
{"errcode":0,"errmsg":"ok"}
I would like to share more with you now! For example, you can query custom menus and delete them. these can be implemented based on api instructions!
The above is the detailed content of the development series (3). For more information, see other related articles on php Chinese network!