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

Method postImage

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

发送图片消息

(String appId, String toWxid, String imgUrl)

Source from the content-addressed store, hash-verified

36 * 发送图片消息
37 */
38 public static JSONObject postImage(String appId, String toWxid, String imgUrl) {
39 JSONObject param = new JSONObject();
40 param.put("appId", appId);
41 param.put("toWxid", toWxid);
42 param.put("imgUrl", imgUrl);
43 return OkhttpUtil.postJSON("/message/postImage", param);
44 }
45
46 /**
47 * 发送语音消息

Callers

nothing calls this directly

Calls 1

postJSONMethod · 0.95

Tested by

no test coverage detected