import { default } from "https://deno.land/x/oura_api@0.4.0/src/Webhook.ts";
Methods
createSubscription(): Promise<Subscription>
Creates a new webhook subscription. See setup documentation on the Oura Developer website for a detailed description of the creation workflow.
deleteSubscription(id: string): Promise<DeletedSubscription>
Deletes a webhook subscription.
getSubscription(id: string): Promise<Subscription>
Retrieves a specific webhook subscription by id.
listSubscriptions(): Promise<Subscription[]>
Retrieves a list of current active webhook subscriptions.
renewSubscription(id: string): Promise<Subscription>
Renews the expiration time of a webhook subscription.
updateSubscription(): Promise<Subscription>
id: string,
verificationToken: string,
callbackUrl?: string,
eventType?: EventType,
dataType?: DataType,
Updates a webhook subscription.