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