Front.fetchChannels(callback)
Sends you all the channels accessible by the current user.
The callback's channels
parameter will contain an array of channels.
callback: function
A callback function.
Front.fetchChannels(function (channels) {
if (!channels) return;
console.log(channels);
});
Sample JSON for a channel:
{
"id": "cha_123",
"type": "imap",
"type_name": "email",
"is_private": false,
"message_type": "email",
"address": "[email protected]",
"send_as": "[email protected]"
}