UNPKG

oxylabs-ai-studio

Version:

JavaScript SDK for Oxylabs AI Studio API services

34 lines 862 B
import { SDKConfig, HttpRequestConfig } from './types.js'; /** * HTTP Client for Oxylabs API */ export declare class OxylabsAIStudioClient { private config; private http; constructor(config: SDKConfig); /** * Handle and format API errors */ private handleError; /** * Retry wrapper for API calls */ private withRetry; /** * GET request */ get<T = any>(url: string, config?: HttpRequestConfig): Promise<T>; /** * POST request */ post<T = any>(url: string, data?: any, config?: HttpRequestConfig): Promise<T>; /** * PUT request */ put<T = any>(url: string, data?: any, config?: HttpRequestConfig): Promise<T>; /** * DELETE request */ delete<T = any>(url: string, config?: HttpRequestConfig): Promise<T>; } //# sourceMappingURL=client.d.ts.map