Reports
Opt-out report
Changed onGet the number of opted-out Push users who access the app within the specified time period.
get/api/reports/optouts
Request
- Base URLhttps://go.urbanairship.com
- Auth
- HTTP basic
- or HTTP bearer
- or OAuth 2Client credentialsToken URLhttp://oauth2.{domain}.com/tokenScopesrpt
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
startstring date-time required
Example:2021-02-01T00:00:00
A date-time for start of report.
endstring date-time required
Example:2021-02-28T00:00:00
A date-time for end of report.
precision'HOURLY' | 'DAILY' | 'MONTHLY' required
Granularity of results to return. Defaults to DAILY.
Response
Returned on success, with the JSON representation of the opt-outs in the body of the response.
Example response
{
"optouts": [
{
"android": 1,
"date": "2018-06-01 10:00:00",
"ios": 1
}
]
}Changes
- breaking
the
queryrequest parameterprecisionbecame required - breaking
for the
queryrequest parameterend, the format changed from no format todate-time - breaking
for the
queryrequest parameterstart, the format changed from no format todate-time
This list may be incomplete.
- breaking