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

x/oura_api/mod.ts>OuraOAuth#fetchData

Typescript project to interact with v2 of the Oura Ring API
Latest
method OuraOAuth.prototype.fetchData
Re-export
import { OuraOAuth } from "https://deno.land/x/oura_api@1.0.1/mod.ts";

Fetches data from the Oura API using an OAuth2 access token.

Parameters

endpoint: string
  • The API endpoint URL.
optional
params: Record<string, string>
  • Optional query parameters.
optional
accessToken: string
  • Access token required for OAuth-driven calls.

Returns

Promise<unknown>

A promise that resolves with the fetched data (either an array or a single object).