greip-node
Version:
Official Node.js library for Greip API
28 lines (27 loc) • 956 B
TypeScript
export declare const BASE_URL: string;
export declare const availableGeoIPParams: string[];
export declare const availableLanguages: string[];
export declare const availableFormats: string[];
export declare const availableCountryParams: string[];
export interface Options {
ips?: string[];
ip?: string;
source?: string;
key?: string;
params?: string[];
format?: string;
lang?: string;
mode?: string;
countryCode?: string;
text?: string;
asn?: string;
email?: string;
phone?: string;
iban?: string;
data?: {
[key: string]: string | number | string[] | object | boolean;
};
}
export declare const serialize: (obj: any) => string;
export declare const makeHttpRquest: (endpoint: string, options: any, callback: (data: object) => void, token: string) => void;
export declare const makePostRquest: (endpoint: string, options: any, callback: (data: object) => void, token: string) => void;