Skip to content

Instantly share code, notes, and snippets.

@haltuf
haltuf / moodix.php
Created August 16, 2022 06:33
Moodix API - authentication and moodixstat endpoint call
<?php declare(strict_types=1);
/**
* Basic authentication and call of `moodixstat` endpoint
*/
$username = 'test';
$password = 'test';
$url = 'https://app.moodix.market/api/moodixstat/?format=json';