@payforpress/payforpress-node-sdk
Version:
Official Node.js Server SDK for PayForPress API - An onboarding, paywall and payment solution for online media
53 lines (37 loc) • 1.06 kB
Markdown
Official Node.js SDK for PayForPress API - An onboarding, paywall and payment solution for online media.
```bash
npm install payforpress-node-sdk
```
```typescript
import { PayForPress } from 'payforpress-node-sdk';
// Initialize the SDK with your API key
const pfp = new PayForPress({
apiKey: 'your-api-key-here'
});
// Example: Get user information
async function getUser() {
try {
const user = await pfp.users.get({ email: 'user@example.com' });
console.log('User:', user);
} catch (error) {
console.error('Error:', error);
}
}
```
- User Management
- Article Management
- Payment Processing
- Analytics
- Appearance Settings
- Targeting Rules
- Organization Settings
For detailed API documentation, please visit our [API Documentation](https://payforpress.gitbook.io/payforpress/api-pfp-connect/api-pfp-connect).
This SDK is designed to be used on the server-side only. Never expose your API key in client-side code.
MIT