\EasyWeChat\OfficialAccount\CustomerServiceMessenger

Class MessageBuilder.

Summary

Methods
Properties
Constants
__construct()
message()
by()
from()
to()
send()
__get()
No public properties found
No constants found
No protected methods found
$message
$to
$account
$client
N/A
No private methods found
No private properties found
N/A

Properties

$message

$message : \EasyWeChat\Kernel\Messages\Message;

Messages to send.

Type

\EasyWeChat\Kernel\Messages\Message;

$to

$to : string

Messages target user open id.

Type

string

$account

$account : string

Messages sender staff id.

Type

string

$client

$client : \EasyWeChat\OfficialAccount\CustomerService\Client

Customer service instance.

Type

\EasyWeChat\OfficialAccount\CustomerService\Client

Methods

__construct()

__construct(\EasyWeChat\OfficialAccount\CustomerService\Client  $client) 

MessageBuilder constructor.

Parameters

\EasyWeChat\OfficialAccount\CustomerService\Client $client

send()

send() : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string

Send the message.

Throws

\EasyWeChat\Kernel\Exceptions\RuntimeException

Returns

\Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string

__get()

__get(  $property) : mixed

Return property.

Parameters

$property

Returns

mixed