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

Method postFile

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

发送文件消息

(String appId, String toWxid, String fileUrl, String fileName)

Source from the content-addressed store, hash-verified

24 * 发送文件消息
25 */
26 public static JSONObject postFile(String appId, String toWxid, String fileUrl, String fileName) {
27 JSONObject param = new JSONObject();
28 param.put("appId", appId);
29 param.put("toWxid", toWxid);
30 param.put("fileUrl", fileUrl);
31 param.put("fileName", fileName);
32 return OkhttpUtil.postJSON("/message/postFile", param);
33 }
34
35 /**
36 * 发送图片消息

Callers

nothing calls this directly

Calls 1

postJSONMethod · 0.95

Tested by

no test coverage detected