Class Notifications

Constructors

Properties

api: Api

Methods

  • Returns Promise<null | void | IotCredentials>

  • Parameters

    • organization: string
    • limit: number = 20
    • offset: number = 0

    Returns Promise<ApiResponse<NotificationsResponse, void>>

  • Parameters

    • organization: string

    Returns Promise<ApiResponse<number, void>>

  • Parameters

    • payload: { deviceToken: string; platform: "ios" | "android"; platformEndpoint: string }

    Returns Promise<ApiResponse<void, void>>

  • Parameters

    • organization: string
    • notificationId: string

    Returns Promise<ApiResponse<{ n: number; ok: number }, void>>

  • Parameters

    • organization: string
    • OptionallastNotificationAt: string

    Returns Promise<ApiResponse<{ n: number; ok: number }, void>>