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

x/oura_api/mod.ts>Oura#fetchData

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

Fetches data from the Oura API using the stored personal access token.

Parameters

endpoint: string
  • The API endpoint URL.
optional
params: Record<string, string>
  • Optional query parameters.

Returns

Promise<unknown>

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