Commit 7955336a authored by shiyu's avatar shiyu

getMenu5

parent f2cd40e6
......@@ -280,11 +280,11 @@ public class OfficialAccountApi {
MediaType JSON = MediaType.parse("application/json; charset=utf-8");
OkHttpClient client = new OkHttpClient();
RequestBody requestBody = RequestBody.create(JSON, json);
String createUrl = "https://api.weixin.qq.com/cgi-bin/menu/create" + "?access_token=" + token;
Request request = new Request.Builder()
.url(deleteUrl)
.url(createUrl)
.post(requestBody)
.build();
try {
okhttp3.Response response = client.newCall(request).execute();
if (response.isSuccessful()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment