node-easywechat
Version:
EasyWechat SDK for Node.js (NOT OFFICIAL)
16 lines (15 loc) • 496 B
TypeScript
import MerchantInterface from "./Contracts/MerchantInterface";
import { AxiosRequestConfig } from "axios";
declare class Signature {
protected merchant: MerchantInterface;
constructor(merchant: MerchantInterface);
/**
* V3版本的签名计算
* @param method 请求方式
* @param url 请求地址
* @param payload 请求载荷
* @returns
*/
createHeader(method: string, url: string, payload: AxiosRequestConfig<any>): string;
}
export = Signature;