shoti
Version:
Wrapper for Shoti API.
23 lines (22 loc) • 675 B
TypeScript
import { ShotiConfig } from "./types";
export default class Shoti {
private apikey?;
constructor(apikey?: string | {
apikey: string;
});
getShoti: (config?: ShotiConfig) => Promise<import("./types").ShotiResult | {
error: string;
code: number;
}>;
newShoti: ({ url }: {
url: string;
}) => Promise<import("./types").ShotiNewResponse>;
rateShoti: ({ shoti_id, isNotMaasim }: {
shoti_id: string;
isNotMaasim: boolean;
}) => Promise<import("./types").ShotiRateResponse>;
getTop: () => Promise<{
error?: string;
code?: number;
} | import("./types").ShotiTopResponse[]>;
}