Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

fcm

import { fcm } from "https://googleapis.deno.dev/v1/fcm:v1.ts";

FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost.

class fcm {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsMessagesSend(parent: string, req: SendMessageRequest): Promise<Message>;
}

§Constructors

§
new fcm(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
projectsMessagesSend(parent: string, req: SendMessageRequest): Promise<Message>
[src]

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

@param 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}.