public function sendPushMessageToUser(TypeInterface $message, $openID)
    {
        $this->client->send(
            new Request(
                "POST",
                "https://api.weixin.qq.com/cgi-bin/message/custom/send",
                [],
                json_encode(
                    (new Formatter())->formatMessageForPush($message, $openID)
                )
            )
        );
    }
public function sendPushMessageToUser(TypeInterface $message, $openID)
    {
        $this->client->send(
            new Request(
                "POST",
                "https://api.weixin.qq.com/cgi-bin/message/custom/send",
                [],
                json_encode(
                    (new Formatter())->formatMessageForPush($message, $openID)
                )
            )
        );
    }
public function sendPushMessageToUser ( TypeInterface $ message , $ openID ) { $ this -> client -> send ( new Request ( "POST" , "https://api.weixin.qq.com/cgi-bin/message/custom/send" , [ ] , json_encode ( ( new Formatter ( ) ) -> formatMessageForPush ( $ message , $ openID ) ) ) ) ; }
Sends the given message to the specified user.

@param TypeInterface $message - The message to be sent.
@param string        $openID  - The user's Open ID to send the message to.
Sends the given message to the specified user .