@yext/search-core
Version:
Typescript Networking Library for the Yext Search API
22 lines (19 loc) • 433 B
text/typescript
import { BodyParams, QueryParams } from '../models/http/params';
/**
* A service for HTTP Requests
*/
export interface HttpService {
get<T>(
url: string,
queryParams: QueryParams,
clientSdk: Record<string, string>,
authToken?: string
): Promise<T>,
post<T>(
url: string,
queryParams: QueryParams,
body: BodyParams,
clientSdk: Record<string, string>,
authToken?: string
): Promise<T>
}