/third-party-app-integration

Examples and documentation for third party apps integrations with Curb

Primary LanguageJavaScriptMIT LicenseMIT

Curb Integrations

Query parameters

Describing times, ranges, and resolutions

Timestrings You can use a timestring to describe a time range or a data resolution.

Unit Value Resolution unit Value
m minutes m minutes
h hours 5m 5 minutes
d days h hours
w weeks d days
mo months
y years

The from_now_range parameter is a string representing the amount of time back from the present moment that you would like to query. It must contain a magnitude and a unit value. For example, to query the last 15 minutes, your rangeId would be "15m". To query the last 6 weeks, the rangeId would be "6w".

The resolution parameter specifies what granularity level you would like to query. Note that smaller resolutions will result in slower requests and larger response payloads. "m", "5m", "h", and "d" are the only allowed resolution values.

You can also define a range by using both start and end query parameters. These are dates, which can either be ISO standard strings or Unix timestamps. Curb sample data uses Unix timestamps, so when