微信公众号、小程序带参码
2022-01-24 13:14:38   0  举报             
     
         
 整理微信开发平台的带参码(二维码、小程序码)的接口调用,包含公众号和小程序
    作者其他创作
 大纲/内容
 【小程序】获取小程序码https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/qr-code.html
    【公众号】生成带参数的二维码https://developers.weixin.qq.com/doc/offiaccount/Account_Management/Generating_a_Parametric_QR_Code.html
  创建字符串形式的二维码参数
  配置路由跳转规则
   wxacode.gethttps://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html
  文本内容<a href=\"http://www.qq.com\" data-miniprogram-appid=\"appid\" data-miniprogram-path=\"pages/index/index\">点击跳小程序</a>
  scene_id场景值ID,临时二维码时为32位非0整型,永久二维码时最大值为100000(目前参数只支持1--100000)
  该二维码有效时间,以秒为单位。 最大不超过2592000(即30天)
  点击跳转到图文消息页面
  素材管理 
  小程序码
  永久二维码QR_LIMIT_SCENE/QR_LIMIT_STR_SCENE
  【小程序】扫普通链接二维码打开小程序https://developers.weixin.qq.com/miniprogram/introduction/qrcode.html
  目前为最多10万个
  【公众号】接收事件推送https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_event_pushes.html
  用户已关注时的事件推送SCAN
  点击跳转到外链
  【推荐】scene_str场景值ID(字符串形式的ID),字符串类型,长度限制为1到64
  用户未关注时,进行关注后的事件推送subscribe
  带参码
  临时二维码QR_SCENE/QR_STR_SCENE
  新增永久素材https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html
  客服消息https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html
  扫描带参数二维码事件
  图文消息
  【推荐】wxacode.getUnlimitedhttps://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html
  二维码
  【公众号】被动回复用户消息【需要用户触发】https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Passive_user_reply_message.html
  文本消息
   
 
 
 
 
  0 条评论
 下一页
  
   
   
   
   
  
  
  
  
  
  
  
  
 