Current section

Files

Jump to
ex_oura lib rest_mode_period.ex
Raw

lib/rest_mode_period.ex

defmodule ExOura.RestModePeriod do
@moduledoc """
Documentation for Oura API - Rest Mode Period
"""
alias ExOura.Client
@doc """
Multiple Rest Mode Period
"""
def multiple_rest_mode_period(start_date, end_date, next_token \\ nil, opts \\ []) do
Client.call_api(
Client.RestModePeriodRoutes,
:multiple_rest_mode_period_documents_v2_usercollection_rest_mode_period_get,
[],
Client.date_range_args(start_date, end_date, next_token) ++ opts
)
end
@doc """
Single Rest Mode Period
"""
def single_rest_mode_period(document_id, opts \\ []) do
Client.call_api(
Client.RestModePeriodRoutes,
:single_rest_mode_period_document_v2_usercollection_rest_mode_period_document_id_get,
document_id,
opts
)
end
end