Skip to content

sendtemplate api https 无法发送 报43003错误 #17

@wxm007

Description

@wxm007

public Long sendTemplate(String accessToken, String openId, String templateId, String link, List fields) {
Preconditions.checkNotNullAndEmpty(accessToken, "accessToken");
Preconditions.checkNotNullAndEmpty(openId, "openId");
Preconditions.checkNotNullAndEmpty(templateId, "templateId");
String url = "http://api.weixin.qq.com/cgi-bin/message/template/send?access_token=" + accessToken;
Map<String, Object> params = this.buildTemplateParams(openId, templateId, link, fields);
Map<String, Object> resp = this.doPost(url, params);
Object msgId = resp.get("msgid");
return Long.valueOf(msgId instanceof Long?((Long)msgId).longValue():((Integer)msgId).longValue());
}
url 里的 http https 是否可配置

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions