flickr-sdk
Version:
Almost certainly the best Flickr API client in the world for node and the browser
12 lines (11 loc) • 364 B
TypeScript
import type { GET, POST, Params } from "./params";
export interface Auth {
sign(method: "GET" | "POST", url: string, params: Params): Promise<void>;
}
export interface Transport {
get(url: string, params: GET): Promise<Response>;
post(url: string, params: POST): Promise<Response>;
}
export interface Parser {
parse(res: Response): Promise<any>;
}