Code Monkey home page Code Monkey logo

wxpusher-sdk-java's Issues

寻求帮助

"code":1005,"msg":"接口 [/api/send/message] 出现异常:Unrecognized token 'appToken': was expecting ('true', 'false' or 'null')\n at [Source: (PushbackInputStream); line: 1, column: 10]","data":null,"success":false}

post接口调用出现问题

代码:
url = 'http://wxpusher.zjiecode.com/api/send/message/'
headers = {
'User-Agent': "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
'Content-Type': 'application/json'
}
payload = {
"appToken": "AT_kDV9PtZL17KqeFXaqbouFxB7pyOs165j",
"content": "Wxpusher祝你中秋节快乐!",
"summary": "消息摘要", # 消息摘要,显示在微信聊天页面或者模版消息卡片上,限制长度100,可以不传,不传默认截取content前面的内容。
# 内容类型 1表示文字 2表示html(只发送body标签内部的数据即可,不包括body标签) 3表示markdown
"contentType": 1,
"topicIds": [ # 发送目标的topicId,是一个数组!!!,也就是群发,使用uids单发的时候, 可以不传。

    ],
    "uids": [  # 发送目标的UID,是一个数组。注意uids和topicIds可以同时填写,也可以只填写一个。
        "UID_IcNAIjROboUwZL9OMcdZRCmYYJv8"
    ],
    # 'uid': 'UID_IcNAIjROboUwZL9OMcdZRCmYYJv8',
    "url": "http://wxpusher.zjiecode.com"  # 原文链接,可选参数
}
resp = requests.post(url, headers=headers, params=payload)
print(resp.text)

结果:
{"code":1005,"msg":"接口 [/api/send/message/] 出现异常:Required request body is missing: public com.zjiecode.wxpusher.common.base.result.Result com.zjiecode.wxpusher.server.biz.controller.app.SendController.postSendMessage(com.zjiecode.wxpusher.server.biz.bean.SendMessageReq)","data":null,"success":false}

can't receive message

消息发送成功
但是只能在消息历史里查到,wx推送收不到
2de49c75eb1a952bb2fc04ce4a05411

我用官方的demo发了一条也收不到
并且我当前的状态是: 接收消息

请问贵服务收费吗

贵服务是免费给个人开发者提供消息推送通道,如何赚钱呢,关注人数养号?以后转成营销号?如果免费的话当我这些问题没问

hi ,同学,报备bug

在 class WxPusher中103行开始code异常,请处理
具体code如下:
if (appToken == null || appToken.isEmpty()) { return new Result(ResultCode.BIZ_FAIL, "appToken不能为空"); } if (page == null || page <= 0) { return new Result(ResultCode.BIZ_FAIL, "page不合法"); } if (page == null || page <= 0) { return new Result(ResultCode.BIZ_FAIL, "pageSize不合法"); }

另外 这是一份nodeJS-SDK

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.