Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oura_api/mod.ts>Webhook#createSubscription

Deno project to interact with v2 of the Oura Ring API
Go to Latest
method Webhook.prototype.createSubscription
Re-export
import { Webhook } from "https://deno.land/x/oura_api@0.4.0/mod.ts";

Creates a new webhook subscription. See setup documentation on the Oura Developer website for a detailed description of the creation workflow.

Parameters

callbackUrl: string
  • Your callback URL used by Oura to post subscription events to.
verificationToken: string
  • Your verification token used to verify Oura's calls to your API.
eventType: EventType
  • One of the EventTypes.
dataType: DataType
  • One of the DataTypes.

Returns

Promise<Subscription>

A Subscription typed object of the created subscription.