node-ovh-ts
Version:
OVH API wrapper library for TypeScript
17 lines (14 loc) • 509 B
TypeScript
import { endpoints } from './endpoints.js';
type OVHOptions = {
endpoint?: keyof typeof endpoints;
};
declare class OVHBase {
appKey: string;
appSecret: string;
consumerKey: string;
options: OVHOptions;
constructor(appKey: string, appSecret: string, consumerKey: string, options?: OVHOptions);
request(method: string, path: string, body?: any): Promise<any>;
signRequest(method: string, url: string, body: string, timestamp: string): string;
}
export { OVHBase as default };