appBskyNotificationUnregisterPush function

Future<XRPCResponse<EmptyData>> appBskyNotificationUnregisterPush({
  1. required String serviceDid,
  2. required String token,
  3. required NotificationUnregisterPushPlatform platform,
  4. required String appId,
  5. required ServiceContext $ctx,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

The inverse of registerPush - inform a specified service that push notifications should no longer be sent to the given token for the requesting account. Requires auth.

Implementation

Future<XRPCResponse<EmptyData>> appBskyNotificationUnregisterPush({
  required String serviceDid,
  required String token,
  required NotificationUnregisterPushPlatform platform,
  required String appId,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.appBskyNotificationUnregisterPush,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'serviceDid': serviceDid,
    'token': token,
    'platform': platform.toJson(),
    'appId': appId,
  },
);