收藏
回答

subscribeMessage.send 调用提示不支持?

https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html



按照文档提交的参数,进行push 发送测试,接口返回

errcode:45103

error_msg:'This API has been unsupported hint: [qT_jwA08044124]'


请问这是什么原因?

回答关注问题邀请回答
收藏

2 个回答

  • 青寒
    青寒
    2020-04-18

    关于小程序模板消息能力调整说明? - 微信开放社区 https://developers.weixin.qq.com/community/develop/doc/000046b0e6035824c6b9ed8235b809

    2020-04-18
    有用 1
    回复 2
    • seven
      seven
      2020-04-18
      如果这个更新放到 下线接口附近,感觉更友好,已经解决
      2020-04-18
      回复
    • 大圣
      大圣
      2020-04-22回复seven
      哥 怎么解决的 赐教
      2020-04-22
      回复
  • seven
    seven
    2020-04-18
    import requests
    
    def get_access_token():
    
        payload = {
    
        'grant_type': 'client_credential',
    
        'appid': '我的appid',
    
        'secret': '我的secret'
    
        }
    
    
    
    
        req = requests.get('https://api.weixin.qq.com/cgi-bin/token', params=payload, timeout=3, verify=False)
    
        access_token = req.json()['access_token']
    
    
    
    
        return access_token
    
    
    
    
    def template_push(token):
    
        data = {
    
            "touser": 'oDqgP0UHm3ilM0PQ1GMRrHUJS_xU',
    
            "template_id": 'fs3dLUhZ-77IlABWyxu9IDCDxMCuBVn6AoS55LOc3uU',
    
            "page": 'pages/index/index',
    
            "miniprogram_state":"developer",
    
            "lang":"zh_CN",
    
            "data": {
    
                "number01": {
    
                    "value": "339208499"
    
                },
    
                "date01": {
    
                    "value": "2015年01月05日"
    
                },
    
                "site01": {
    
                    "value": "上海创意园"
    
                } ,
    
                "site02": {
    
                    "value": "上海市市龙茗路397号"
    
                }
    
            }
    
        }
    
        push_url = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token={}'.format(token)
    
        ret = requests.post(push_url, json=data, timeout=3, verify=False)
    
    
    
    
        print(ret)
    
    
    
    
    def send_push():
    
        template_push(get_access_token())
    
    
    
    
    send_push()
    
    
    
    
    2020-04-18
    有用
    回复
登录 后发表内容
问题标签