This RFC describe how to manage remote identity
A remote identity
determines how a third party messaging plateform is connected in order to fetch
and send private communications.
Remote Identity MUST be rendered in the required content-type, generally json
.
route: GET v1/remote-identities
{
"remote_identities": [
{
"remote_identity_id": "0ba2e346-e4f8-4c45-9adc-eeb1d42f07e2",
"is_fetching": true,
"connected": false,
"last_connection": "2016-08-31T10:15:39+0200",
"connection_required": true,
"cancel_fetch_required": false,
"identity_type": "email",
"identity_id": "92d3727a-eefc-4537-b879-85f1c9d197bb",
"params": {
"login": "foo",
"password": "bar",
"mail_protocol": "IMAP",
"incomming_mail_server": "imap.bar.tld",
"mail_port": "993",
"fetch_method": "from_now"
}
}
],
"total": 1
}
Gmail is a bit special because it is a mail that can be connected by IMAP, POP and its API.
Also personnal and company addresses can be used with this provider eg. foo@bar.tld
.
When using this API, the client has to update the contact sub-object provider
property:
{
email: {
address: 'bender@planet-express.fake',
date_insert: '2016-05-25T14:13:05.591000',
is_primary: 1,
label: null,
type: 'home',
provider: 'gmail'
},
}