mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Add ZncProxyApi.getFriend
This commit is contained in:
parent
4897aca3e6
commit
8d5981c8f7
|
|
@ -81,6 +81,11 @@ export default class ZncProxyApi extends AbstractCoralApi implements CoralApiInt
|
|||
}));
|
||||
}
|
||||
|
||||
async getFriend(nsa_id: string) {
|
||||
const result = await this.fetchProxyApi<{friend: Friend_4}>('friend/' + nsa_id);
|
||||
return createResult(result, result.friend);
|
||||
}
|
||||
|
||||
async addFavouriteFriend(nsa_id: string) {
|
||||
const result = await this.fetchProxyApi('friend/' + nsa_id, 'PATCH', JSON.stringify({
|
||||
isFavoriteFriend: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user