mediahub-fe/service/tableau/tableau-service.ts

18 lines
583 B
TypeScript
Raw Normal View History

import { httpGetArrayBuffer, httpPostInterceptor } from "../http-config/http-interceptor-service";
2024-12-12 18:38:15 +00:00
export async function generateTicket() {
const url = "/admin/tableau-ticket";
2025-01-01 17:48:57 +00:00
return httpPostInterceptor(url, null);
2024-12-12 18:38:15 +00:00
}
export async function tableauSignin() {
const url = "/admin/tableau-signin";
return httpPostInterceptor(url, null);
}
export async function tableauViewImage(token: string, viewId: string, date?: string) {
const headers = {
"x-token": token
}
return await httpGetArrayBuffer(`/admin/tableau-view-image?viewId=${viewId}&date=${date}`, headers);
}