#4257 Added functionality to create previews for post links using open graph data from those links. (#4890)

Этот коммит содержится в:
Debanshu Kundu
2017-01-20 23:11:13 +05:30
коммит произвёл enahum
родитель fefe4b70d9
Коммит 3aaf71fdea
26 изменённых файлов: 1241 добавлений и 534 удалений

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

@@ -1767,6 +1767,16 @@ export default class Client {
end(this.handleResponse.bind(this, 'getFileInfosForPost', success, error));
}
getOpenGraphMetadata(url, success, error) {
request.
post(`${this.getBaseRoute()}/get_opengraph_metadata`).
set(this.defaultHeaders).
type('application/json').
accept('application/json').
send({url}).
end(this.handleResponse.bind(this, 'getOpenGraphMetadata', success, error));
}
// Routes for Files
uploadFile(file, filename, channelId, clientId, success, error) {