2025-09-24 14:05:51 -06:00
|
|
|
import apiClient from "./apiClient";
|
2025-09-19 17:20:05 -06:00
|
|
|
|
|
|
|
|
export async function PostImpressions(data: any) {
|
|
|
|
|
try {
|
2025-09-19 18:54:47 -06:00
|
|
|
const response = await apiClient.post("/operations/impressions", data);
|
2025-09-19 17:20:05 -06:00
|
|
|
return response.data;
|
|
|
|
|
} catch (error: any) {
|
|
|
|
|
const msg =
|
|
|
|
|
error.response?.data?.error ||
|
|
|
|
|
error.message ||
|
|
|
|
|
"Error desconocido al cobrar impresión";
|
|
|
|
|
return { error: msg };
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-22 14:53:19 -06:00
|
|
|
//IO
|