diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-11 23:49:13 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-11 23:49:13 +0500 |
| commit | 3ef6044be93e16ebc5325921ebfcc5c89878e999 (patch) | |
| tree | 1e2a7218ee0d85ac12fd8aa37b099e196274aa86 /api.js | |
| parent | 5af7121ef495ce4d04b39da470331dd6421025d9 (diff) | |
feat: fetch data from api
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 |
