n8n-nodes-twitter-uploader-inf
Version:
Twitter media upload nodes for n8n
27 lines (26 loc) • 709 B
TypeScript
import { INode } from 'n8n-workflow';
export declare class OAuth1Helper {
private readonly consumerKey;
private readonly consumerSecret;
private accessToken?;
private accessSecret?;
private readonly node;
constructor(config: OAuth1Config, node: INode);
generateAuthHeader(requestData: RequestData): string;
private validateParameters;
}
interface OAuth1Config {
consumerKey: string;
consumerSecret: string;
accessToken?: string;
accessSecret?: string;
signatureMethod?: 'HMAC-SHA1' | 'RSA-SHA1';
nonceLength?: number;
version?: string;
}
interface RequestData {
url: string;
method: string;
params?: Record<string, string>;
}
export {};