Get user kudosu
The users.getUserKudosu
method on a Client
instance makes a GET
request to the users/{user}/kudosu
endpoint and returns an array containing the specified user’s kudosu history.
Example
const kudosu = await api.users.getUserKudosu(3171691, {
query: {
limit: 1
}
});
Parameters
Parameter | Type | Optional | Description |
---|---|---|---|
user | number | ID of the user to get kudosu from | |
options | GetUserKodosuOptions | ✓ |
options.query
Parameter | Type | Optional | Description |
---|---|---|---|
limit | number | ✓ | Limit number of results |
offset | number | ✓ | Pagination offset |
Returns
Promise<UserKudosuHistory[]>;
Types
Possible Exceptions
See the error handling documentation for more information.
invalid_json_syntax
network_error
unexpected_response
Notice that something is missing? Found a typo? Think something's incomplete? Or think that something can be explained better? Feel free to open a pull request or submit an issue on the library's Github repository .