class ProjectsMessages extends Resource (View source)

The "messages" collection of methods.

Typical usage is:

 $fcmService = new Google\Service\FirebaseCloudMessaging(...);
 $messages = $fcmService->projects_messages;

Methods

send(string $parent, SendMessageRequest $postBody, array $optParams = [])

Send a message to specified target (a registration token, topic or condition). (messages.send)

Details

Message send(string $parent, SendMessageRequest $postBody, array $optParams = [])

Send a message to specified target (a registration token, topic or condition). (messages.send)

Parameters

string $parent

Required. It contains the Firebase project id (i.e. the unique identifier for your Firebase project), in the format of projects/{project_id}. For legacy support, the numeric project number with no padding is also supported in the format of projects/{project_number}.

SendMessageRequest $postBody
array $optParams

Optional parameters.

Return Value

Message

Exceptions

Exception