mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
feat(client): ✨ Add account refetch endpoint
This commit is contained in:
parent
de01d3ff73
commit
8a4b246f01
|
|
@ -2048,6 +2048,25 @@ export class LysandClient extends BaseClient {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /api/v1/accounts/:id/refetch
|
||||
*
|
||||
* Starts a refetch of an account from a remote source.
|
||||
* Lysand API only.
|
||||
* @param id The account ID.
|
||||
* @return Account with updated data.
|
||||
*/
|
||||
public refetchAccount(
|
||||
id: string,
|
||||
extra?: RequestInit,
|
||||
): Promise<Output<Account>> {
|
||||
return this.post<Account>(
|
||||
`/api/v1/accounts/${id}/refetch`,
|
||||
undefined,
|
||||
extra,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST /oauth/token
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue