mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 11:39:17 +00:00
9 lines
287 B
JavaScript
9 lines
287 B
JavaScript
|
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
||
|
|
||
|
export async function getCardProfile(token, cardId) {
|
||
|
let profile = await fetchWithTimeout(`/contact/cards/${cardId}/profile?agent=${token}`, { method: 'GET' });
|
||
|
checkResponse(profile);
|
||
|
return await profile.json()
|
||
|
}
|
||
|
|