diff options
Diffstat (limited to 'api.js')
| -rw-r--r-- | api.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,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)); +}
\ No newline at end of file |
