18 lines
583 B
TypeScript
18 lines
583 B
TypeScript
import { httpGetArrayBuffer, httpPostInterceptor } from "../http-config/http-interceptor-service";
|
|
|
|
export async function generateTicket() {
|
|
const url = "/admin/tableau-ticket";
|
|
return httpPostInterceptor(url, null);
|
|
}
|
|
|
|
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);
|
|
} |