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

Method postLink

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

发送链接消息

(String appId, String toWxid, String title, String desc, String linkUrl, String thumbUrl)

Source from the content-addressed store, hash-verified

72 * 发送链接消息
73 */
74 public static JSONObject postLink(String appId, String toWxid, String title, String desc, String linkUrl, String thumbUrl) {
75 JSONObject param = new JSONObject();
76 param.put("appId", appId);
77 param.put("toWxid", toWxid);
78 param.put("title", title);
79 param.put("desc", desc);
80 param.put("linkUrl", linkUrl);
81 param.put("thumbUrl", thumbUrl);
82 return OkhttpUtil.postJSON("/message/postLink", param);
83 }
84
85 /**
86 * 发送名片消息

Callers

nothing calls this directly

Calls 1

postJSONMethod · 0.95

Tested by

no test coverage detected