Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions v2/account/mail.js
Original file line number Diff line number Diff line change
@@ -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=<account+contacts>

[
{
"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