AvatarAPImg

Rej
Rej

Setup

Easily configure AvatarAPImg within the config.php

const URL = "https://avatar.yourdomain.tld/data/ego.json";

API Object Properties

stdClass Object
(
    [avatar] => stdClass Object
        (
            [user] => Rej
            [src] => ./assets/ego.jpg
            [format] => jpg
            [width] => 250
            [height] => 250
            [title] => Rej
        )

    [API-Key] => stdClass Object
        (
            [uuid] => 5085867adc42fc7d09297f018244d28a
        )

)

API Call

$cUrl = curl_init();
curl_setopt_array($cUrl, array(
  CURLOPT_RETURNTRANSFER => 1,
  CURLOPT_URL => 'https://avatar.yourdomain.tld/api.php'
));

$avatar = curl_exec($cUrl);

Basic Usage

<?= $avatar; ?>