Changes between Version 16 and Version 17 of SwipeBasedGameForTimeline/doc
- Timestamp:
- Aug 10, 2017, 12:26:40 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SwipeBasedGameForTimeline/doc
v16 v17 30 30 [[BR]] 31 31 32 == Json ==32 == Question Json == 33 33 34 34 Question type 1:[[BR]] … … 268 268 }}} 269 269 270 271 == Game Calls == 272 273 1 - [REQUEST] http://ws75.aptoide.com/api/7/user/timeline/game/setScore/[[BR]] 274 Sends answer status to server after question has been answered;[[BR]] 275 [[BR]] 276 2 - [REQUEST] http://ws75.aptoide.com/api/7/user/timeline/game/getLeaderboard[[BR]] 277 Sends what type of leaderboard to display to server as well as the number of entries we want to display;[[BR]] 278 [[BR]] 279 == Game Call JSON == 280 1 - [REQUEST][[BR]] 281 282 {{{ 283 { 284 (DEFAULT APTOIDE REQUEST FIELDS) 285 "response": true, 286 "uid": 1236 287 } 288 }}}[[BR]] 289 [[BR]] 290 [RESPONSE][[BR]] 291 292 {{{ 293 { 294 "uid": 1236, 295 "leaderboard":[{ 296 "name": "Better player", 297 "position": 99, 298 "score": 200 299 }, 300 { 301 "name": "me", 302 "position": 100, 303 "score": 100 304 }, 305 { 306 "name": "Worse Player", 307 "position": 101, 308 "score": 50 309 }] 310 } 311 }}}[[BR]] 312 [[BR]] 313 2 - [REQUEST][[BR]] 314 315 {{{ 316 { 317 "filter": "friends", 318 "offset": 0, 319 "limit": 10 320 } 321 }}}[[BR]] 322 [[BR]] 323 [REPONSE][[BR]] 324 325 {{{ 326 { 327 "leaderboard":[{ 328 "name": "P1", 329 "position": 50, 330 "score":100 331 }, 332 { 333 "name": "P2", 334 "position": 51, 335 "score":90 336 }, 337 { 338 "name": "P3", 339 "position": 52, 340 "score":80 341 }, 342 { 343 "name": "P4", 344 "position": 53, 345 "score":70 346 }, 347 { 348 "name": "user", 349 "position": 54, 350 "score":60 351 }, 352 { 353 "name": "P5", 354 "position": 55, 355 "score":50 356 }, 357 { 358 "name": "P6", 359 "position": 56, 360 "score":40 361 }, 362 { 363 "name": "P7", 364 "position": 57, 365 "score":30 366 }, 367 { 368 "name": "P8", 369 "position": 58, 370 "score":20 371 }, 372 { 373 "name": "P9", 374 "position": 59, 375 "score":10 376 }] 377 } 378 }}} 379 380 381