summaryrefslogtreecommitdiff
path: root/api.js
blob: 09fa6153945f1da3b4cf9992dc7da26b210ed238 (plain)
1
2
3
4
5
6
7
8
function getTinyEmotesUserByName(instanceUrl, name) {
    return fetch(`${instanceUrl}/users.php?name=${name}`, {
        "headers": {
            "Accept": "application/json"
        }
    }).then((r) => r.json())
      .catch(err => console.error('Fetch failed:', err));
}