mirror of
https://github.com/balzack/databag.git
synced 2025-02-15 13:09:17 +00:00
9 lines
323 B
JavaScript
9 lines
323 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function getCardCloseMessage(server, token, cardId) {
|
|
let message = await fetchWithTimeout(`https://${server}/contact/cards/${cardId}/closeMessage?agent=${token}`, { method: 'GET' });
|
|
checkResponse(message);
|
|
return await message.json();
|
|
}
|
|
|