This assumes the account has already been connected to Context.IO. See http://context.io/docs/lite/users/email_accounts for the field definitions of :id
and :label
POST /users/:id/email_accounts/:label
- 200 - Account added and being scanned
- 404 - Account not found for the CIO account
- 500 - Shit be crazy
Returns up to 25 results
GET /users/:id/email_accounts/:label/unread_messages
- 200 - Found data (see JSON schema)
- 400 - Account isn't being scanned
- 500 - Sit be crazy
{
"id": "account id",
"label": "account label",
"unread_messages": [
{
"message_id": "<[email protected]>",
"subject": "hello there!",
"sender": {
"address": "[email protected]",
"total_count": 100,
"unread_count": 20,
"answered_count": 4,
"flagged_count": 1,
"draft_count": 0
},
}
]
}
GET /users/:id/email_accounts/:label/senders
- 200 - Found data (see JSON schema)
- 404 - Account isn't being scanned
- 500 - Shit be crazy
{
"id": "account id",
"label": "account label",
"senders": [
{
"address": "[email protected]",
"read_count": 100,
"unread_count": 20,
"forwarded_count": 4,
"flagged_count": 1
}
]
}