Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 4913c33

Browse files
committed
Adding get player batch method.
1 parent 893dceb commit 4913c33

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ api.getItems().then((response: any) => {
3434
```
3535

3636
## Documentation / Methods
37-
You can view all the available methods and documentation on the [PaladinsDev website](https://paladins.dev/docs/paladins.js/v/1.0.0/).
37+
You can view all the available methods and documentation on the [PaladinsDev website](https://paladins.dev/docs/paladins.js/v/1.1.0/).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "paladins.js",
3-
"version": "1.0.2",
3+
"version": "1.1.0",
44
"description": "A JavaScript package to help make communication with the Paladins API from Hi-Rez/Evil Mojo easier.",
55
"keywords": [
66
"paladins",

src/API.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ export class API {
9292
return this.endpoint("getplayer", [player]);
9393
}
9494

95+
/**
96+
* Get a batch of players via player ids
97+
*
98+
* @param number[] playerIds
99+
* @return any
100+
*/
101+
public getPlayerBatch(playerIds: number[]) {
102+
return this.endpoint("getplayerbatch", [playerIds.join(',')])
103+
}
104+
95105
/**
96106
* Get an array of players with the requested name.
97107
*

0 commit comments

Comments
 (0)