feat(ancpi): extract Angular AJAX endpoints from ShowCartItems page
This commit is contained in:
@@ -245,6 +245,17 @@ export class EpayClient {
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Raw HTML fetch (for page scraping) ─────────────────── */
|
||||
|
||||
async getRawHtml(url: string): Promise<string> {
|
||||
const response = await this.client.get(url, {
|
||||
timeout: DEFAULT_TIMEOUT_MS,
|
||||
maxRedirects: 5,
|
||||
validateStatus: () => true,
|
||||
});
|
||||
return String(response.data ?? "");
|
||||
}
|
||||
|
||||
/* ── Credits ───────────────────────────────────────────────── */
|
||||
|
||||
async getCredits(): Promise<number> {
|
||||
|
||||
Reference in New Issue
Block a user