Implemention of slack import feature.

Этот коммит содержится в:
Christopher Speller
2015-07-07 09:16:13 -04:00
родитель 7004a348b5
Коммит d78ebab108
11 изменённых файлов: 556 добавлений и 4 удалений

Просмотреть файл

@@ -982,3 +982,12 @@ module.exports.getUserIdFromChannelName = function(channel) {
return otherUserId;
};
module.exports.importSlack = function(file, success, error) {
formData = new FormData();
formData.append('file', file, file.name);
formData.append('filesize', file.size);
formData.append('importFrom', 'slack');
client.importSlack(formData, success, error);
};