BoothMate API Documentation - v0.4.0
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • 通知を取得します。

      最新10件の通知を取得します。

      Returns Promise<Notifications>

      通知の配列

      セッショントークン sessionToken必須です。

      指定せずに実行すると AuthError が発生します。

      // 通知のタイトルを出力
      const notifications = await client.notification.list();
      for (const notification of notifications) {
      console.log(notification.content);
      }
    • 未読の通知数(最大10件)を取得します。

      Returns Promise<number>

      未読の通知数

      セッショントークン sessionToken必須です。

      指定せずに実行すると AuthError が発生します。

      // 未読の通知数を出力
      const unreadCount = await client.notification.getUnreadCount();
      console.log(`未読の通知数: ${unreadCount}`);