Installation
SDK Installation
Get started with the Ezeniia SDK by installing it through your preferred package manager.
// JavaScript SDK npm install @ezeniia/js-sdk
// Python SDK pip install ezeniia-sdk
// Java SDK implementation 'com.ezeniia:ezeniia-sdk:1.0.0'
SDK Usage
1. Initialize the SDK
// JavaScript Example import { EzeniiaSDK } from '@ezeniia/js-sdk'; const sdk = new EzeniiaSDK({ apiKey: 'YOUR_API_KEY', environment: 'sandbox' });
Initialize the SDK with your API key and environment configuration.
View Configuration Options2. Make API Calls
// Fetch user profile const user = await sdk.users.getProfile('user123'); console.log(user);
Use the SDK's methods to interact with our APIs directly.
Usage Examples
Authentication Flow
const token = await sdk.auth.login({ email: 'user@example.com', password: 'password123' }); await sdk.auth.setAccessToken(token);
Securely authenticate and set up session tokens for protected API calls.
Data Manipulation
const result = await sdk.data.query({ collection: 'users', query: { status: 'active' } }); await sdk.data.update('users', '12345', { lastLogin: new Date() });
Query and update data in your Ezeniia application with ease.