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

Method postVoice

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

发送语音消息

(String appId, String toWxid, String voiceUrl, Integer voiceDuration)

Source from the content-addressed store, hash-verified

47 * 发送语音消息
48 */
49 public static JSONObject postVoice(String appId, String toWxid, String voiceUrl, Integer voiceDuration) {
50 JSONObject param = new JSONObject();
51 param.put("appId", appId);
52 param.put("toWxid", toWxid);
53 param.put("voiceUrl", voiceUrl);
54 param.put("voiceDuration", voiceDuration);
55 return OkhttpUtil.postJSON("/message/postVoice", param);
56 }
57
58 /**
59 * 发送视频消息

Callers

nothing calls this directly

Calls 1

postJSONMethod · 0.95

Tested by

no test coverage detected