dood-stream-client
Version:
🚀 A feature-rich client for the DoodStream API with caching, logging, and error handling
40 lines (39 loc) • 997 B
JavaScript
/**
* 👤 Account-related API functionality
*/
export class AccountApi {
/**
* Create a new Account API instance
*
* @param client - HTTP client
*/
constructor(client) {
this.client = client;
}
/**
* 📊 Get account information
*
* @returns Promise with account info response
*/
async getInfo() {
return this.client.get("/account/info");
}
/**
* 📈 Get account statistics/reports
*
* @param params - Optional parameters (last days, date range)
* @returns Promise with account statistics response
*/
async getStats(params = {}) {
return this.client.get("/account/stats", params);
}
/**
* 🚫 Get DMCA reported files list
*
* @param params - Optional parameters (pagination, results per page)
* @returns Promise with DMCA list response
*/
async getDmcaList(params = {}) {
return this.client.get("/dmca/list", params);
}
}