Get Started
Get User Variables
Variables are things like treatments or symptoms and include analysis settings and statistics.
his function fetches user-defined and public variables based on specified criteria. Variables can include treatments, symptoms, or any custom user data. It allows for filtering based on a search phrase, sorting by measurement time.
First, create a getDfdaAccessToken()
function as described here if you haven’t done that already.
You can check the API documentation to generate code to do this in any language.
Common Parameters
Property | Description |
---|---|
searchPhrase | Search phrase to filter variables by name or description. |
includePublic | If true, this also returns variables for which the user has no measurements or reminders yet. |
sort | The order in which variables are returned. Default is -latestMeasurementTime . |
Use the
sort
parameter to manage the order of returned variables, such as by their latest measurement time here.