Online Users
The Online Users endpoint allows you to retrieve information about currently active users.
API Integration Examples
Section titled “API Integration Examples”fetch('http://API-PLATFORM/online-users', {headers: { 'Content-Type': 'application/json', 'Api-Id': 'YOUR_SECRET_TOKEN', 'Api-Key': 'YOUR_SECRET_TOKEN'}})import axios from 'axios';
const options = {method: 'GET',url: 'http://DOWINN-API/online-users',headers: {'Content-Type': 'application/json','Api-Id': 'YOUR_SECRET_TOKEN','Api-Key': 'YOUR_SECRET_TOKEN'}};
try {const { data } = await axios.request(options);console.log(data);} catch (error) {console.error(error);}Sample Flow (Sequence Diagram)
Section titled “Sample Flow (Sequence Diagram)”Response Body
Section titled “Response Body”Successful Response
interface OnlineUsersResponse { code: number data: { user_id: string currency: string amount: number }}Failed Response
interface OnlineUsersResponse { code: number message: string}Server Error
interface OnlineUsersResponse { code: number message: string}