UNPKG

@payforpress/payforpress-node-sdk

Version:

Official Node.js Server SDK for PayForPress API - An onboarding, paywall and payment solution for online media

12 lines (11 loc) 582 B
import { AxiosRequestConfig } from 'axios'; import { PayForPressConfig } from './types'; export declare class PayForPressClient { private client; private config; constructor(config: PayForPressConfig); protected post<T>(endpoint: string, data?: any, config?: AxiosRequestConfig): Promise<T>; protected get<T>(endpoint: string, params?: any, config?: AxiosRequestConfig): Promise<T>; protected put<T>(endpoint: string, data?: any, config?: AxiosRequestConfig): Promise<T>; protected delete<T>(endpoint: string, config?: AxiosRequestConfig): Promise<T>; }