Tobacco Cessation
Measurements associated with a user going through a tobacco cessation program. These values are aggregated throughout the day.
Example
GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users/{USER_ID}/tobacco_cessation.json?access_token={ORGANIZATION_ACCESS_TOKEN}
GET https://api.validic.com/v1/organizations/5176906c6deddac02c000001/users/5 552cd7fded0807c4000017/tobacco_cessation.json?access_token=e7ba1f04e88f25d3 99a91c8cbcd72300e01309e96b7725e40b49cd1effaa5deb 200 { "summary": { ... }, "tobacco_cessation": [ { "_id": "51552cd8fded0807c4000031", "timestamp": "2013-03-10T07:12:16+00:00", "utc_offset": "+00:00", "cigarettes_allowed": 9, "cigarettes_smoked": 2, "cravings": 12, "last_smoked": "2013-03-10T05:55:36+00:00", "source": "sample_app", "source_name": "Sample App", "last_updated": "2013-03-10T07:12:16+00:00" } ] }
Params
Field
Type
Description
timestamp
String
Timestamp for the measurement set
utc_offset
String
Timezone information for the measurement set
cigarettes_allowed
Double
Number of cigarettes budgeted for a given day
cigarettes_smoked
Double
Number of cigarettes smoked for a given day
cravings
Double
Number of cravings a user has for a given day
last_smoked
String
Timestamp for the last cigarette smoked
source
String
The short name of the application that recorded the activity
source_name
String
The display name of the application that recorded the activity
last_updated
String
Date and time when the measurement set was last updated
_id
String
Unique id of the measurement