masto
    Preparing search index...

    Interface PushSubscriptionResource

    interface PushSubscriptionResource {
        create: Method<
            WebPushSubscription,
            CreatePushSubscriptionParams,
            HttpMetaParams<"json">,
        >;
        fetch: Method<WebPushSubscription>;
        remove: Method<void>;
        update: Method<
            WebPushSubscription,
            UpdatePushSubscriptionParams,
            HttpMetaParams<"json">,
        >;
    }
    Index

    Properties

    create: Method<
        WebPushSubscription,
        CreatePushSubscriptionParams,
        HttpMetaParams<"json">,
    >

    Add a Web Push API subscription to receive notifications. Each access token can have one push subscription. If you create a new subscription, the old subscription is deleted.

    Parameters

    Returns Push Subscription

    View the PushSubscription currently associated with this access token.

    remove: Method<void>

    Removes the current Web Push API subscription.

    update: Method<
        WebPushSubscription,
        UpdatePushSubscriptionParams,
        HttpMetaParams<"json">,
    >

    Updates the current push subscription. Only the data part can be updated. To change fundamentals, a new subscription must be created instead.

    Parameters

    PushSubscription