From 8b824374f47c7a2fd4b30860cc61cb173479999b Mon Sep 17 00:00:00 2001 From: lye Date: Thu, 11 May 2017 16:26:36 -0700 Subject: [PATCH] Add /v2/account/mail. --- v2/account/mail.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 v2/account/mail.js diff --git a/v2/account/mail.js b/v2/account/mail.js new file mode 100644 index 00000000..7f55d6f3 --- /dev/null +++ b/v2/account/mail.js @@ -0,0 +1,29 @@ +// Authenticated endpoint that dumps out the account's mail. Includes +// mail that has not yet been delievered (e.g., mail queued past the +// 10 that are visible in-game), but only shows the top 100 (to +// discourage infinite queueing which would probably break the API). +// Requires the "account" and "contacts" scopes. + +// GET /v2/account/mail?access_token= + +[ + { + "from_id": "8890B5A0-7D2E-E611-9106-0862664D7672", + "from_account": "Lawton.7615", + "from_char": "Fsdf", + "subject": "subject", + "message": "hello", + "timestamp": "2017-05-09T23:01:50.000Z", + "coins": 42000, + "items": [ + { + "id": 20323, + "count": 2 + } + ] + } + /* ... */ +] + +// NOTES: +// * from_id references /v2/account.id