MCPcopy Create free account
hub / github.com/Devo919/Gewechat / postMiniApp

Method postMiniApp

src/main/java/api/base/MessageApi.java:123–134  ·  view source on GitHub ↗

发送小程序消息

(String appId, String toWxid, String miniAppId, String displayName, String pagePath, String coverImgUrl, String title, String userName)

Source from the content-addressed store, hash-verified

121 * 发送小程序消息
122 */
123 public static JSONObject postMiniApp(String appId, String toWxid, String miniAppId, String displayName, String pagePath, String coverImgUrl, String title, String userName) {
124 JSONObject param = new JSONObject();
125 param.put("appId", appId);
126 param.put("toWxid", toWxid);
127 param.put("miniAppId", miniAppId);
128 param.put("displayName", displayName);
129 param.put("pagePath", pagePath);
130 param.put("coverImgUrl", coverImgUrl);
131 param.put("title", title);
132 param.put("userName", userName);
133 return OkhttpUtil.postJSON("/message/postMiniApp", param);
134 }
135
136 /**
137 * 转发文件

Callers

nothing calls this directly

Calls 1

postJSONMethod · 0.95

Tested by

no test coverage detected