uservoice-nodejs
Version:
Node.js SDK for UserVoice
14 lines (13 loc) • 981 B
TypeScript
export declare class OAuthProvider implements IOAuthProvider {
getConsumer(baseUrl: string, apiKey: string, apiSecret: string): IOAuthConsumer;
}
export interface IOAuthProvider {
getConsumer(baseUrl: string, apiKey: string, apiSecret: string): IOAuthConsumer;
}
export interface IOAuthConsumer {
get(url: string, userToken: string, userSecret: string, callback: (error: any, data: any, response: any) => any): IOAuthConsumer;
delete(url: string, userToken: string, userSecret: string, callback: (error: any, data: any, response: any) => any): IOAuthConsumer;
post(url: string, oauthToken: string, oauthTokenSecret: string, postBody: any, postContentType: string, callback: any): IOAuthConsumer;
put(url: string, oauthToken: string, oauthTokenSecret: string, postBody: any, postContentType: string, callback: any): IOAuthConsumer;
getOAuthRequestToken(callback: (error: any, oauthToken: string, oauthTokenSecret: string, results: any) => void): void;
}