username username unique_id 7007 device_token 123asd device_type iphon

 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
{
"username":"username",
"unique_id":"7007",
"device_token":"123asd",
"device_type":"iphone"
}
to http://wstl.devdev.co/api/connect
response
{
"API_key":"ljtXkyxn3IkrbiYQcC25LjScxqngUezxu76Q4rBrGeDPAE6EeIhYNVQN8BPJzkTv",
"coins":10,
"bombs":5,
"fiftyfifties":5,
"avatar":"http:\/\/wstl.devdev.co\/avatars\/.jpg"
}
{
"API_key": "ljtXkyxn3IkrbiYQcC25LjScxqngUezxu76Q4rBrGeDPAE6EeIhYNVQN8BPJzkTv",
"question_type":"1",
"user_id":"2"
}
to http://wstl.devdev.co/api/inviteUserToGame
response
{
"success":"Game has been created",
"game_id":74
}
Repeating connect!
{
"username":"username",
"unique_id":"7007",
"device_token":"123asd",
"device_type":"iphone"
}
to http://wstl.devdev.co/api/connect
response
{
"API_key":"HJmeXv3SDRCmO76QpbdzJrjvXFxVeTaZIcMKUGrkRTKIlsNwytkgw5u0DP86BizG",
"coins":"10",
"bombs":"5",
"fiftyfifties":"5",
"avatar":""
}
{
"API_key": "HJmeXv3SDRCmO76QpbdzJrjvXFxVeTaZIcMKUGrkRTKIlsNwytkgw5u0DP86BizG"
}
to http://wstl.devdev.co/api/activeGamesForUser
response
[{"game_id":"74","qtype":"1","waitingForUser":"2"}] /* The same game id */