yakczh
V2EX  ›  问与答

微信给订阅用户 push 消息是用哪个接口?

  •  
  •   yakczh · Aug 8, 2014 · 2800 views
    This topic created in 4385 days ago, the information mentioned may be changed or developed.
    $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
    $RX_TYPE = trim($postObj->MsgType);
    switch ($RX_TYPE)
    {
    case "event":
    $result = $this->receiveEvent($postObj);
    break;
    case "text":
    $result = $this->receiveText($postObj);
    break;
    }

    echo $result;

    这种是类似机器人,用户发消息,然后回复 如果我想用户订阅以后,每天主动push给用户,不需要用户操作,应该怎么写?
    3 replies    2014-08-18 15:15:59 +08:00
    pimin
        1
    pimin  
       Aug 8, 2014
    http://mp.weixin.qq.com/wiki/index.php?title=%E9%AB%98%E7%BA%A7%E7%BE%A4%E5%8F%91%E6%8E%A5%E5%8F%A3

    3、无论在公众平台网站上,还是使用接口群发,用户每月只能接收4条群发消息,多于4条的群发将对该用户发送失败。

    为什么不去看看官方文档呢。。
    allan888
        2
    allan888  
       Aug 8, 2014
    为什么不去看看官方文档 +1
    订阅号一天一条
    服务号一个月四条
    mantianyu
        3
    mantianyu  
       Aug 18, 2014
    我记得没有这个接口
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4386 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 05:34 · PVG 13:34 · LAX 22:34 · JFK 01:34
    ♥ Do have faith in what you're doing.