|
|
@@ -440,6 +440,86 @@ The response will then look like this:
|
|
440
|
440
|
The error codes are as follows, `1` indicates an invalid auth code and `2`
|
|
441
|
441
|
indicates a malformed request.
|
|
442
|
442
|
|
|
|
443
|
+### /events/accepted/
|
|
|
444
|
+To get a users accepted events, a `GET` request should be sent with the following
|
|
|
445
|
+data:
|
|
|
446
|
+```javascript
|
|
|
447
|
+{
|
|
|
448
|
+ "auth": "$2a$10$qjkvbcPZ4YC7/a/I0ZpTaeJp6auXjGrG9pgAdI3PP61u4CftQPSL2"
|
|
|
449
|
+}
|
|
|
450
|
+```
|
|
|
451
|
+The response will then look like this:
|
|
|
452
|
+```javascript
|
|
|
453
|
+{
|
|
|
454
|
+ "accepted_events": [
|
|
|
455
|
+ {
|
|
|
456
|
+ "name": "Super Mario Kart Party 5",
|
|
|
457
|
+ "location": "Marioland",
|
|
|
458
|
+ "society": "testsociety",
|
|
|
459
|
+ "start": "14605026110490",
|
|
|
460
|
+ "end": "14605026110500",
|
|
|
461
|
+ "details": "Play some Mario Kart with us",
|
|
|
462
|
+ "organiser": "test1",
|
|
|
463
|
+ "id": "851133039"
|
|
|
464
|
+ },
|
|
|
465
|
+ {
|
|
|
466
|
+ "name": "Super Mario Kart Party 6",
|
|
|
467
|
+ "location": "Marioland",
|
|
|
468
|
+ "society": "testsociety",
|
|
|
469
|
+ "start": "14605026110490",
|
|
|
470
|
+ "end": "14605026110500",
|
|
|
471
|
+ "details": "Play some Mario Kart with us",
|
|
|
472
|
+ "organiser": "test1",
|
|
|
473
|
+ "id": "838450388"
|
|
|
474
|
+ },
|
|
|
475
|
+ { ... }
|
|
|
476
|
+ ],
|
|
|
477
|
+ "error": 0
|
|
|
478
|
+}
|
|
|
479
|
+```
|
|
|
480
|
+The error codes are as follows, `1` indicates an invalid auth code and `2`
|
|
|
481
|
+indicates a malformed request.
|
|
|
482
|
+
|
|
|
483
|
+### /events/declined/
|
|
|
484
|
+To get a users declined events, a `GET` request should be sent with the following
|
|
|
485
|
+data:
|
|
|
486
|
+```javascript
|
|
|
487
|
+{
|
|
|
488
|
+ "auth": "$2a$10$qjkvbcPZ4YC7/a/I0ZpTaeJp6auXjGrG9pgAdI3PP61u4CftQPSL2"
|
|
|
489
|
+}
|
|
|
490
|
+```
|
|
|
491
|
+The response will then look like this:
|
|
|
492
|
+```javascript
|
|
|
493
|
+{
|
|
|
494
|
+ "declined_events": [
|
|
|
495
|
+ {
|
|
|
496
|
+ "name": "Super Mario Kart Party 5",
|
|
|
497
|
+ "location": "Marioland",
|
|
|
498
|
+ "society": "testsociety",
|
|
|
499
|
+ "start": "14605026110490",
|
|
|
500
|
+ "end": "14605026110500",
|
|
|
501
|
+ "details": "Play some Mario Kart with us",
|
|
|
502
|
+ "organiser": "test1",
|
|
|
503
|
+ "id": "851133039"
|
|
|
504
|
+ },
|
|
|
505
|
+ {
|
|
|
506
|
+ "name": "Super Mario Kart Party 6",
|
|
|
507
|
+ "location": "Marioland",
|
|
|
508
|
+ "society": "testsociety",
|
|
|
509
|
+ "start": "14605026110490",
|
|
|
510
|
+ "end": "14605026110500",
|
|
|
511
|
+ "details": "Play some Mario Kart with us",
|
|
|
512
|
+ "organiser": "test1",
|
|
|
513
|
+ "id": "838450388"
|
|
|
514
|
+ },
|
|
|
515
|
+ { ... }
|
|
|
516
|
+ ],
|
|
|
517
|
+ "error": 0
|
|
|
518
|
+}
|
|
|
519
|
+```
|
|
|
520
|
+The error codes are as follows, `1` indicates an invalid auth code and `2`
|
|
|
521
|
+indicates a malformed request.
|
|
|
522
|
+
|
|
443
|
523
|
### /events/accept/:eventid
|
|
444
|
524
|
To accept an event, a `POST` request should be sent with the following data:
|
|
445
|
525
|
```javascript
|