Skip to main content

This library provides convenient access to the JoinJoaomgcd REST API from TypeScript or JavaScript.

Works with
It is unknown whether this package works with Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Browsers
JSR Score
100%
Published
2 months ago

joinjoaomgcd

This library provides convenient access to the JoinJoaomgcd REST API from TypeScript or JavaScript.

Usage

const client = new JoinJoaomgcd(YOUR_API_KEY);

const devices = await client.listDevices();

const send = await client.sendPush({
  deviceId: SPECIFIC_DEVICE_ID,
  title: 'send',
  text: 'test',
});

const sendAll = await client.sendPush({
  deviceId: 'group.all',
  title: 'all',
  text: 'test',
});

const sendIds = await client.sendPushWithIds({
  deviceIds: devices.map((device) => device.deviceId),
  title: 'ids',
  text: 'test',
});

License

MIT

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @unface/joinjoaomgcd

Import symbol

import * as mod from "@unface/joinjoaomgcd";

Add Package

npx jsr add @unface/joinjoaomgcd

Import symbol

import * as mod from "@unface/joinjoaomgcd";

Add Package

yarn dlx jsr add @unface/joinjoaomgcd

Import symbol

import * as mod from "@unface/joinjoaomgcd";

Add Package

pnpm dlx jsr add @unface/joinjoaomgcd

Import symbol

import * as mod from "@unface/joinjoaomgcd";

Add Package

bunx jsr add @unface/joinjoaomgcd

Import symbol

import * as mod from "@unface/joinjoaomgcd";