-
Notifications
You must be signed in to change notification settings - Fork 9
/
push.json
91 lines (89 loc) · 2.74 KB
/
push.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*---------------------------------------------------------------------------*
* push.json *
* *
* A mock JSON file showing the format of a push request from a phone. For *
* reference only. *
*---------------------------------------------------------------------------*
* Note: the deviceID of the phone gets sent in the url request: *
* https://server.com/answers/00030OG9M8WE4G0 *
*---------------------------------------------------------------------------*/
{
"answers": [
{
"ans_type": 1, //can be one of 0 (choice(s)), 1 (value (an int)), or 2 (text)
"question_id": 0,
"created": 0,
//one of the following:
"choice_ids": "1,3,4"
"ans_value": 21
"ans_text": "Hello, World!"
}, {
...
}, {
...
}
],
"locations": [
{
"longitude": 0,
"latitude": 0,
"accuracy": 0,
"created": 0
}, {
...
}, {
...
}
],
"calls": [
{
"contact_id": "0004KX9ADSKFG9-AV93OASDV093",
"type": 0, // see Calls class in Android
"duration": 0 // null for text, 0 for missed calls, # of seconds for calls
"created": 0 // unix timestamp again, in fact all created are unix.
}, {
...
}, {
...
}
],
"statusChanges": [
{
"status": 0, // 1 for enabling, or turning on, 0 for turning off or disabling a feature
"type": 0, // enum {gps, calllog, textlog, app} - what is being enabled / disabled
"created": 0 // unix timestamp again, in fact all "created" are unix.
}, {
...
}, {
...
}
],
"surveysTaken" : [
{
"survey_id": 1,
"status" : 4, //one of:
//SURVEYS_DISABLED_LOCALLY = 0;
//SURVEYS_DISABLED_SERVER = 1;
//USER_INITIATED_FINISHED = 2;
//USER_INITIATED_UNFINISHED = 3;
//SCHEDULED_FINISHED = 4;
//SCHEDULED_UNFINISHED = 5;
//SCHEDULED_DISMISSED = 6;
//SCHEDULED_IGNORED = 7;
//RANDOM_FINISHED = 8;
//RANDOM_UNFINISHED = 9;
//RANDOM_DISMISSED = 10;
//RANDOM_IGNORED = 11;
"rate": 85, //completion rate between 0 and 100
"created" : 0 //unix timestamp
}, {
...
}
],
"extras" : [
{
"type": 0, //0 for a photo
"created": 0, //timestamp
"data":"209289318...", //base64 data
]
}