@uwu-codes/furaffinity-api
Version:
FurAffinity wrapper for Node.js
41 lines (40 loc) • 1.67 kB
TypeScript
import { Rating, SearchType, Category, Tag, Species, Gender } from './Enums';
export declare const ENDPOINT = "https://www.furaffinity.net";
export declare const COOKIES: {
loggedIn: boolean;
a: string;
b: string;
};
export declare function Login(cookieA: string, cookieB: string): void;
export declare function SetProxy(config?: false | string): void;
export interface SearchOptions {
page?: number;
rating?: Rating;
type?: SearchType;
prev?: boolean;
}
export interface BrowseOptions {
page?: number;
perpage?: number;
rating?: Rating;
category?: Category;
tag?: Tag;
species?: Species;
gender?: Gender;
}
export interface SubmissionsOptions {
startAt?: string;
sort?: "new" | "old";
perpage?: 24 | 48 | 72;
}
export declare function FetchHome(): Promise<string>;
export declare function FetchSearch(query: string, options?: SearchOptions): Promise<string>;
export declare function FetchBrowse(options?: BrowseOptions): Promise<string>;
export declare function FetchGallery(id: string, page?: number, perpage?: number): Promise<string>;
export declare function FetchScraps(id: string, page?: number, perpage?: number): Promise<string>;
export declare function FetchSubmission(id: string): Promise<string>;
export declare function FetchSubmissions(options?: SubmissionsOptions): Promise<string>;
export declare function FaveSubmission(favLink: string): Promise<void>;
export declare function FetchAuthor(id: string): Promise<string>;
export declare function FetchWatchingList(id: string, page?: number): Promise<string>;
export declare function FetchMyWatchingList(page?: number): Promise<string>;