services
This module contains the services used to interact with different portions of the WOM API.
BaseService
Bases: ABC
The base service all API services inherit from.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
http_service |
HttpService
|
The http service to use for requests. |
required |
serializer |
Serializer
|
The serializer to use for handling incoming JSON data from the API. |
required |
Source code in wom/services/base.py
CompetitionService
Bases: BaseService
Handles endpoints related to competitions.
Source code in wom/services/competitions.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 |
|
add_participants
async
add_participants(
id: int, verification_code: str, *participants: str
) -> ResultT[models.HttpSuccessResponse]
Adds participants to a competition. Only adds valid participants, and ignores duplicates.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
verification_code |
str
|
The verification code for the competition. |
required |
*participants |
str
|
The participants you would like to add. |
()
|
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Example
Source code in wom/services/competitions.py
add_teams
async
add_teams(
id: int, verification_code: str, *teams: models.Team
) -> ResultT[models.HttpSuccessResponse]
Adds teams to a competition. Ignores duplicates.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
verification_code |
str
|
The verification code for the competition. |
required |
*teams |
Team
|
The teams you would like to add. |
()
|
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Example
Source code in wom/services/competitions.py
create_competition
async
create_competition(
title: str,
metric: enums.Metric,
starts_at: datetime,
ends_at: datetime,
*,
group_id: t.Optional[int] = None,
group_verification_code: t.Optional[str] = None,
teams: t.Optional[t.List[models.Team]] = None,
participants: t.Optional[t.List[str]] = None
) -> ResultT[models.CreatedCompetitionDetail]
Creates a new competition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
title |
str
|
The title of the competition. |
required |
metric |
Metric
|
The |
required |
starts_at |
datetime
|
The start date for the competition. |
required |
ends_at |
datetime
|
The end date for the competition. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
group_id |
Optional[int]
|
The optional group id to tie to this competition.
Defaults to |
group_verification_code |
Optional[str]
|
The optional group verification
code. Required if group_id is supplied. Defaults to
|
participants |
Optional[List[str]]
|
The optional list of participants to include
in the competition. Defaults to |
teams |
Optional[List[Team]]
|
The optional teams to include in the competition.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[CreatedCompetitionDetail]
|
A |
Info
The group_id
, participants
, and teams
parameters are
mutually exclusive.
-
If
group_id
is provided, this method will create a classic competition with all members of that group as participants. -
If
participants
is provided andgroup_id
isn't, this method will create a classic competition with all those participants included. -
If
teams
is provided, this endpoint will create a team competition with all those participants included. Also acceptsgroup_id
as a way to link this competition to the group.
Example
from datetime import datetime, timedelta
import wom
client = wom.Client(...)
result = await client.competitions.create_competition(
"Slayer week",
wom.Metric.Slayer,
starts_at=datetime.now() + timedelta(days=7),
ends_at=datetime.now() + timedelta(days=14),
group_verification_code="111-111-111",
group_id=123,
)
Source code in wom/services/competitions.py
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
|
delete_competition
async
Deletes a competition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
verification_code |
str
|
The verification code for the competition. |
required |
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Warning
This action can not be reversed.
Example
Source code in wom/services/competitions.py
edit_competition
async
edit_competition(
id: int,
verification_code: str,
*,
title: t.Optional[str] = None,
metric: t.Optional[enums.Metric] = None,
starts_at: t.Optional[datetime] = None,
ends_at: t.Optional[datetime] = None,
teams: t.Optional[t.List[models.Team]] = None,
participants: t.Optional[t.List[str]] = None
) -> ResultT[models.Competition]
Edits an existing competition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
verification_code |
str
|
The verification code for the competition. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
title |
Optional[str]
|
The optional updated title of the competition.
Defaults to |
metric |
Optional[Metric]
|
The optional new |
starts_at |
Optional[datetime]
|
The optional new start date for the competition.
Defaults to |
ends_at |
Optional[datetime]
|
The optional new end date for the competition.
Defaults to |
participants |
Optional[List[str]]
|
The optional list of participants to replace
the existing participants with. Defaults to |
teams |
Optional[List[Team]]
|
The optional list of teams to replace the existing
participants with. Defaults to |
Returns:
Type | Description |
---|---|
ResultT[Competition]
|
A |
Warning
The teams/participants parameters will completely
overwrite the existing participants/teams. If you're looking
to add users, check out add_participants()
.
Example
Source code in wom/services/competitions.py
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 |
|
get_details
async
get_details(
id: int, *, metric: t.Optional[enums.Metric] = None
) -> ResultT[models.CompetitionDetail]
Gets details for the given competition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
metric |
Optional[Metric]
|
The optional |
Returns:
Type | Description |
---|---|
ResultT[CompetitionDetail]
|
A |
Example
Source code in wom/services/competitions.py
get_details_csv
async
get_details_csv(
id: int,
*,
metric: t.Optional[enums.Metric] = None,
team_name: t.Optional[str] = None,
table_type: t.Optional[
models.CompetitionCSVTableType
] = None
) -> ResultT[str]
Gets details about the competition in CSV format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
metric |
Optional[Metric]
|
The optional |
team_name |
Optional[str]
|
The optional team name you would like to get details
for. Defaults to |
table_type |
Optional[CompetitionCSVTableType]
|
The optional table type formatting to apply.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[str]
|
A |
Example
Source code in wom/services/competitions.py
get_top_participant_history
async
get_top_participant_history(
id: int, *, metric: t.Optional[enums.Metric] = None
) -> ResultT[t.List[models.Top5ProgressResult]]
Gets details for the players with the top 5 progress in the competition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
metric |
Optional[Metric]
|
The optional |
Returns:
Type | Description |
---|---|
ResultT[List[Top5ProgressResult]]
|
A |
Example
Source code in wom/services/competitions.py
remove_participants
async
remove_participants(
id: int, verification_code: str, *participants: str
) -> ResultT[models.HttpSuccessResponse]
Removes participants from a competition. Ignores usernames that are not competing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
verification_code |
str
|
The verification code for the competition. |
required |
*participants |
str
|
The participants you would like to remove. |
()
|
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Example
Source code in wom/services/competitions.py
remove_teams
async
Removes teams from a competition. Ignores teams that don't exist.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
verification_code |
str
|
The verification code for the competition. |
required |
*teams |
str
|
The team names you would like to remove. |
()
|
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Example
Source code in wom/services/competitions.py
search_competitions
async
search_competitions(
*,
title: t.Optional[str] = None,
type: t.Optional[models.CompetitionType] = None,
status: t.Optional[models.CompetitionStatus] = None,
metric: t.Optional[enums.Metric] = None,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.Competition]]
Searches for competitions with the given criteria.
Other Parameters:
Name | Type | Description |
---|---|---|
title |
Optional[str]
|
The optional title of the competition. Defaults to
|
type |
Optional[CompetitionType]
|
The optional |
status |
Optional[CompetitionStatus]
|
The optional |
metric |
Optional[Metric]
|
The optional |
limit |
Optional[int]
|
The maximum number of paginated items to receive.
Defaults to |
offset |
Optional[int]
|
The page offset for requesting multiple pages.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[Competition]]
|
A |
Example
Source code in wom/services/competitions.py
update_outdated_participants
async
update_outdated_participants(
id: int, verification_code: str
) -> ResultT[models.HttpSuccessResponse]
Attempts to update all outdated competition participants.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the competition. |
required |
verification_code |
str
|
The verification code for the competition. |
required |
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Info
Participants are outdated when either:
-
Competition is ending or started within 6h of now and the player hasn't been updated in over 1h.
-
Player hasn't been updated in over 24h.
Warning
This method adds every outdated participant to an "update queue", and the WOM servers try to update players in the queue one by one, with a delay in between each. For each player in the queue, an attempt is made to update it up to 3 times, with 30s in between each attempt.
Please note that this is dependent on the OSRS hiscores functioning correctly, and therefore this method does NOT guarantee the players will be updated, it only guarantees that an attempt will be made to update them, up to 3 times.
Example
Source code in wom/services/competitions.py
DeltaService
Bases: BaseService
Handles endpoints related to deltas.
Source code in wom/services/deltas.py
get_global_leaderboards
async
get_global_leaderboards(
metric: enums.Metric,
period: enums.Period,
*,
player_type: t.Optional[models.PlayerType] = None,
player_build: t.Optional[models.PlayerBuild] = None,
country: t.Optional[models.Country] = None
) -> ResultT[t.List[models.DeltaLeaderboardEntry]]
Gets the top global delta leaderboard for a specific metric and period.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metric |
Metric
|
The metric to filter on. |
required |
period |
Period
|
The period of time to filter on. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
player_type |
Optional[PlayerType]
|
The optional player type to filter on. Defaults
to |
player_build |
Optional[PlayerBuild]
|
The optional player build to filter on.
Defaults to |
country |
Optional[Country]
|
The optional country to filter on. Defaults to
|
Returns:
Type | Description |
---|---|
ResultT[List[DeltaLeaderboardEntry]]
|
A |
Example
Source code in wom/services/deltas.py
EfficiencyService
Bases: BaseService
Handles endpoints related to efficiency.
Source code in wom/services/efficiency.py
get_global_leaderboards
async
get_global_leaderboards(
metric: enums.Metric = enums.Metric.Ehp,
*,
player_type: t.Optional[models.PlayerType] = None,
player_build: t.Optional[models.PlayerBuild] = None,
country: t.Optional[models.Country] = None,
both: bool = False
) -> ResultT[t.List[models.Player]]
Gets the top global efficiency leaderboard.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metric |
Metric
|
The computed metric to filter on. Defaults to |
Ehp
|
Other Parameters:
Name | Type | Description |
---|---|---|
player_type |
Optional[PlayerType]
|
The optional player type to filter on. Defaults
to |
player_build |
Optional[PlayerBuild]
|
The optional player build to filter on.
Defaults to |
country |
Optional[Country]
|
The optional country to filter on. Defaults to
|
both |
bool
|
If |
Returns:
Type | Description |
---|---|
ResultT[List[Player]]
|
A |
Example
Source code in wom/services/efficiency.py
GroupService
Bases: BaseService
Handles endpoints related to groups.
Source code in wom/services/groups.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 |
|
add_members
async
add_members(
id: int,
verification_code: str,
*members: t.Union[str, models.GroupMemberFragment]
) -> ResultT[models.HttpSuccessResponse]
Adds members to an existing group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
verification_code |
str
|
The group verification code. |
required |
*members |
Union[str, GroupMemberFragment]
|
The members to add to the group. |
()
|
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Note
A mixture of strings and GroupMemberFragments can be passed for members. If a string is passed, no role will be added for that member.
Example
Source code in wom/services/groups.py
change_member_role
async
change_member_role(
id: int,
verification_code: str,
username: str,
role: models.GroupRole,
) -> ResultT[models.GroupMembership]
Changes the role for a member in an existing group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
verification_code |
str
|
The group verification code. |
required |
username |
str
|
The username of the player to update. |
required |
role |
GroupRole
|
The players new group role. |
required |
Returns:
Type | Description |
---|---|
ResultT[GroupMembership]
|
A |
Example
Source code in wom/services/groups.py
create_group
async
create_group(
name: str,
*members: t.Union[str, models.GroupMemberFragment],
clan_chat: t.Optional[str] = None,
description: t.Optional[str] = None,
homeworld: t.Optional[int] = None
) -> ResultT[models.CreatedGroupDetail]
Creates a new group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
The name for the group. |
required |
*members |
Union[str, GroupMemberFragment]
|
The optional members to add to the group. |
()
|
Other Parameters:
Name | Type | Description |
---|---|---|
clan_chat |
Optional[str]
|
The optional clan chat for the group. Defaults to
|
description |
Optional[str]
|
The optional group description. Defaults to
|
homeworld |
Optional[int]
|
The optional homeworld for the group. Defaults to
|
Returns:
Type | Description |
---|---|
ResultT[CreatedGroupDetail]
|
A |
Note
A mixture of strings and GroupMemberFragments can be passed for members. If a string is passed, no role will be added for that member.
Example
Source code in wom/services/groups.py
delete_group
async
Deletes an existing group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
verification_code |
str
|
The group verification code. |
required |
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Warning
This action is irreversible.
Example
Source code in wom/services/groups.py
edit_group
async
edit_group(
id: int,
verification_code: str,
*,
name: t.Optional[str] = None,
members: t.Optional[
t.Iterable[t.Union[str, models.GroupMemberFragment]]
] = None,
clan_chat: t.Optional[str] = None,
description: t.Optional[str] = None,
homeworld: t.Optional[int] = None,
social_links: t.Optional[models.SocialLinks] = None
) -> ResultT[models.GroupDetail]
Edits an existing group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
verification_code |
str
|
The group verification code. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
name |
Optional[str]
|
The optional new name for the group. Defaults to
|
members |
Optional[Iterable[Union[str, GroupMemberFragment]]]
|
The optional iterable of members to replace the
existing group members with. Defaults to |
clan_chat |
Optional[str]
|
The optional new clan chat for the group.
Defaults to |
description |
Optional[str]
|
The optional new group description. Defaults to
|
homeworld |
Optional[int]
|
The optional new homeworld for the group.
Defaults to |
social_links |
Optional[SocialLinks]
|
The optional new social links for the group.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[GroupDetail]
|
A |
Warning
The members list provided will completely replace the
existing members. If you want to add members, see
add_members()
Note
A mixture of strings and GroupMemberFragments can be passed for members. If a string is passed, no role will be added for that member.
Example
Source code in wom/services/groups.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
|
get_achievements
async
get_achievements(
id: int,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.Achievement]]
Gets the achievements for the group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The optional pagination limit. Defaults to |
offset |
Optional[int]
|
The optional pagination offset. Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[Achievement]]
|
A |
Example
Source code in wom/services/groups.py
get_activity
async
get_activity(
id: int,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.GroupActivity]]
Gets the activity for the group. This is a paginated endpoint.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group to fetch activity for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The pagination limit. |
offset |
Optional[int]
|
The pagination offset. |
Returns:
Type | Description |
---|---|
ResultT[List[GroupActivity]]
|
A |
Example
Source code in wom/services/groups.py
get_competitions
async
get_competitions(
id: int,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.Competition]]
Gets competitions for a given group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The optional pagination limit. Defaults to |
offset |
Optional[int]
|
The optional pagination offset. Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[Competition]]
|
A |
Example
Source code in wom/services/groups.py
get_details
async
Gets the details for the given group id.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The group ID to get details for. |
required |
Returns:
Type | Description |
---|---|
ResultT[GroupDetail]
|
A |
Example
Source code in wom/services/groups.py
get_gains
async
get_gains(
id: int,
metric: enums.Metric,
*,
period: t.Optional[enums.Period] = None,
start_date: t.Optional[datetime] = None,
end_date: t.Optional[datetime] = None,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.GroupMemberGains]]
Gets the gains for a group over a particular time frame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
metric |
Metric
|
The metric to filter on. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
period |
Optional[Period]
|
The optional period of time to get gains for.
Defaults to |
start_date |
Optional[datetime]
|
The minimum date to get the gains from. Defaults
to |
end_date |
Optional[datetime]
|
The maximum date to get the gains from. Defaults
to |
limit |
Optional[int]
|
The optional pagination limit. Defaults to |
offset |
Optional[int]
|
The optional pagination offset. Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[GroupMemberGains]]
|
A |
Info
You must pass one of (period
) or (start_date
+
end_date
), but not both.
Example
Source code in wom/services/groups.py
get_hiscores
async
get_hiscores(
id: int,
metric: enums.Metric,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.GroupHiscoresEntry]]
Gets the hiscores for the group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
metric |
Metric
|
The metric to filter on. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The optional pagination limit. Defaults to |
offset |
Optional[int]
|
The optional pagination offset. Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[GroupHiscoresEntry]]
|
A |
Example
Source code in wom/services/groups.py
get_members_csv
async
Gets members in this group in CSV format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
Returns:
Type | Description |
---|---|
ResultT[str]
|
A |
Example
Source code in wom/services/groups.py
get_name_changes
async
get_name_changes(
id: int,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.NameChange]]
Gets the past name changes for the group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The optional pagination limit. Defaults to |
offset |
Optional[int]
|
The optional pagination offset. Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[NameChange]]
|
A |
Example
Source code in wom/services/groups.py
get_records
async
get_records(
id: int,
metric: enums.Metric,
period: enums.Period,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.RecordLeaderboardEntry]]
Gets the records held by players in the group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
metric |
Metric
|
The metric to filter on. |
required |
period |
Period
|
The period of time to get records for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The optional pagination limit. Defaults to |
offset |
Optional[int]
|
The optional pagination offset. Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[RecordLeaderboardEntry]]
|
A |
Example
Source code in wom/services/groups.py
get_statistics
async
Gets the statistics for the group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
Returns:
Type | Description |
---|---|
ResultT[GroupStatistics]
|
A |
Example
Source code in wom/services/groups.py
remove_members
async
remove_members(
id: int, verification_code: str, *members: str
) -> ResultT[models.HttpSuccessResponse]
Removes members from an existing group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
verification_code |
str
|
The group verification code. |
required |
*members |
str
|
The usernames of members to remove from the group. |
()
|
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Example
Source code in wom/services/groups.py
search_groups
async
search_groups(
name: t.Optional[str] = None,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None,
) -> ResultT[t.List[models.Group]]
Searches for groups that at least partially match the given name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Optional[str]
|
The group name to search for. |
None
|
limit |
Optional[int]
|
The pagination limit. |
None
|
offset |
Optional[int]
|
The pagination offset. |
None
|
Returns:
Type | Description |
---|---|
ResultT[List[Group]]
|
A |
Example
Source code in wom/services/groups.py
update_outdated_members
async
Attempts to update all outdated group members.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The ID of the group. |
required |
verification_code |
str
|
The verification code for the group. |
required |
Returns:
Type | Description |
---|---|
ResultT[HttpSuccessResponse]
|
A |
Info
Group members are considered outdated when they haven't been updated in over 24h.
Warning
This method adds every outdated member to an "update queue", and the WOM servers try to update players in the queue one by one, with a delay in between each. For each player in the queue, an attempt is made to update it up to 3 times, with 30s in between each attempt.
Please note that this is dependent on the OSRS hiscores functioning correctly, and therefore this method does NOT guarantee the players will be updated, it only guarantees that an attempt will be made to update them, up to 3 times.
Example
Source code in wom/services/groups.py
HttpService
The HTTP service used to make requests to the WOM API.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
api_key |
Optional[str]
|
The optional api key to use. |
required |
user_agent |
Optional[str]
|
The optional user agent to use. |
required |
api_base_url |
Optional[str]
|
The optional api base url to use. |
required |
Source code in wom/services/http.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
|
close
async
fetch
async
fetch(
route: routes.CompiledRoute,
*,
payload: t.Optional[t.Dict[str, t.Any]] = None,
allow_http_success: bool = False
) -> bytes | models.HttpErrorResponse
Fetches the given route.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
route |
CompiledRoute
|
The route to make the request to. |
required |
payload |
Optional[Dict[str, Any]]
|
The optional payload to send in the request body. |
None
|
allow_http_success |
bool
|
Whether or not the caller is planning to return http success. |
False
|
Returns:
Type | Description |
---|---|
bytes | HttpErrorResponse
|
The requested bytes or the error response. |
Source code in wom/services/http.py
set_api_key
Sets the api key used by the http service.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
api_key |
str
|
The new api key to use. |
required |
set_base_url
Sets the api base url used by the http service.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
base_url |
str
|
The new base url to use. |
required |
set_user_agent
Sets the user agent used by the http service.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
user_agent |
str
|
The new user agent to use. |
required |
start
async
unset_api_key
NameChangeService
Bases: BaseService
Handles endpoints related to name changes.
Source code in wom/services/names.py
search_name_changes
async
search_name_changes(
username: t.Optional[str] = None,
*,
status: t.Optional[models.NameChangeStatus] = None,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.NameChange]]
Searches for name changes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
Optional[str]
|
The optional username to search for. |
None
|
Other Parameters:
Name | Type | Description |
---|---|---|
status |
Optional[NameChangeStatus]
|
The optional name change status to filter on.
Defaults to |
limit |
Optional[int]
|
The optional maximum items to return on this page
from the API. Defaults to |
offset |
Optional[int]
|
The optional page offset. Defaults to
|
Returns:
Type | Description |
---|---|
ResultT[List[NameChange]]
|
A |
Example
Source code in wom/services/names.py
submit_name_change
async
Submits a new name change.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
old_name |
str
|
The old name for the player. |
required |
new_name |
str
|
The new name for the player. |
required |
Returns:
Type | Description |
---|---|
ResultT[NameChange]
|
A |
Example
Source code in wom/services/names.py
PlayerService
Bases: BaseService
Handles endpoints related to players.
Source code in wom/services/players.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
|
assert_player_type
async
Asserts, and fixes, a players type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to assert the type for. |
required |
Returns:
Type | Description |
---|---|
ResultT[AssertPlayerType]
|
A |
Example
Source code in wom/services/players.py
get_achievement_progress
async
Gets the progress towards achievements for a given player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the achievement progress for. |
required |
Returns:
Type | Description |
---|---|
ResultT[List[PlayerAchievementProgress]]
|
A |
Example
Source code in wom/services/players.py
get_achievements
async
Gets the achievements for a given player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the achievements for. |
required |
Returns:
Type | Description |
---|---|
ResultT[List[Achievement]]
|
A |
Example
Source code in wom/services/players.py
get_archives
async
Gets the archives for the given player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get archives for. |
required |
Returns:
Type | Description |
---|---|
ResultT[List[PlayerArchive]]
|
A |
Example
Source code in wom/services/players.py
get_competition_participations
async
get_competition_participations(
username: str,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None,
status: t.Optional[models.CompetitionStatus] = None
) -> ResultT[t.List[models.PlayerParticipation]]
Gets the competition participations for a given player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the participations for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The maximum number of paginated items to receive.
Defaults to |
offset |
Optional[int]
|
The page offset for requesting multiple pages.
Defaults to |
status |
Optional[CompetitionStatus]
|
The optional |
Returns:
Type | Description |
---|---|
ResultT[List[PlayerParticipation]]
|
A |
Example
Source code in wom/services/players.py
get_competition_standings
async
get_competition_standings(
username: str, status: models.CompetitionStatus
) -> ResultT[t.List[models.PlayerCompetitionStanding]]
Gets the competition standings for a given player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the standings for. |
required |
status |
CompetitionStatus
|
The competition status to get standings for. |
required |
Returns:
Type | Description |
---|---|
ResultT[List[PlayerCompetitionStanding]]
|
A |
Example
Source code in wom/services/players.py
get_details
async
Gets the details for a given player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the details for. |
required |
Returns:
Type | Description |
---|---|
ResultT[PlayerDetail]
|
A |
Example
Source code in wom/services/players.py
get_details_by_id
async
Gets the details for a given player id.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
player_id |
int
|
The is of the player to get the details for. |
required |
Returns:
Type | Description |
---|---|
ResultT[PlayerDetail]
|
A |
Example
Source code in wom/services/players.py
get_gains
async
get_gains(
username: str,
*,
period: t.Optional[enums.Period] = None,
start_date: t.Optional[datetime] = None,
end_date: t.Optional[datetime] = None
) -> ResultT[models.PlayerGains]
Gets the gains made by this player over the given time span.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the gains for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
period |
Optional[Period]
|
The optional period of time to get gains for.
Defaults to |
start_date |
Optional[datetime]
|
The minimum date to get the gains from. Defaults
to |
end_date |
Optional[datetime]
|
The maximum date to get the gains from. Defaults
to |
Returns:
Type | Description |
---|---|
ResultT[PlayerGains]
|
A |
Info
You must pass one of (period
) or (start_date
+
end_date
), but not both.
Example
Source code in wom/services/players.py
get_group_memberships
async
get_group_memberships(
username: str,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.PlayerMembership]]
Gets the group memberships for the given player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the memberships for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The maximum number of paginated items to receive.
Defaults to |
offset |
Optional[int]
|
The page offset for requesting multiple pages.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[PlayerMembership]]
|
A |
Example
Source code in wom/services/players.py
get_name_changes
async
Gets the name changes for the player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the name changes for. |
required |
Returns:
Type | Description |
---|---|
ResultT[List[NameChange]]
|
A |
Example
Source code in wom/services/players.py
get_records
async
get_records(
username: str,
*,
period: t.Optional[enums.Period] = None,
metric: t.Optional[enums.Metric] = None
) -> ResultT[t.List[models.Record]]
Gets the records held by this player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the gains for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
period |
Optional[Period]
|
The optional period of time to get records for.
Defaults to |
metric |
Optional[Metric]
|
The optional metric to filter the records on.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[Record]]
|
A |
Example
Source code in wom/services/players.py
get_snapshots
async
get_snapshots(
username: str,
*,
period: t.Optional[enums.Period] = None,
start_date: t.Optional[datetime] = None,
end_date: t.Optional[datetime] = None,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.Snapshot]]
Gets the snapshots for the player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the snapshots for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
period |
Optional[Period]
|
The optional period of time to get snapshots for.
Defaults to |
start_date |
Optional[datetime]
|
The minimum date to get the snapshots from.
Defaults to |
end_date |
Optional[datetime]
|
The maximum date to get the snapshots from.
Defaults to |
limit |
Optional[int]
|
The maximum number of paginated items to receive.
Defaults to |
offset |
Optional[int]
|
The page offset for requesting the next page.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[Snapshot]]
|
A |
Info
You can pass either (period
) or (start_date
+
end_date
), but not both.
Example
Source code in wom/services/players.py
get_snapshots_timeline
async
get_snapshots_timeline(
username: str,
metric: enums.Metric,
*,
period: t.Optional[enums.Period] = None,
start_date: t.Optional[datetime] = None,
end_date: t.Optional[datetime] = None
) -> ResultT[t.List[models.SnapshotTimelineEntry]]
Gets the snapshots timeline for the given player and metric.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to get the timeline for. |
required |
metric |
Metric
|
The metric to get the timeline for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
period |
Optional[Period]
|
The optional period of time to get snapshots for.
Defaults to |
start_date |
Optional[datetime]
|
The minimum date to get the snapshots from.
Defaults to |
end_date |
Optional[datetime]
|
The maximum date to get the snapshots from.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[SnapshotTimelineEntry]]
|
A |
Info
You can pass either (period
) or (start_date
+
end_date
), but not both.
Example
Source code in wom/services/players.py
search_players
async
search_players(
username: str,
*,
limit: t.Optional[int] = None,
offset: t.Optional[int] = None
) -> ResultT[t.List[models.Player]]
Searches for a player by partial username.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to search for. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
limit |
Optional[int]
|
The maximum number of paginated items to receive.
Defaults to |
offset |
Optional[int]
|
The page offset for requesting the next page.
Defaults to |
Returns:
Type | Description |
---|---|
ResultT[List[Player]]
|
A |
Example
Source code in wom/services/players.py
update_player
async
Updates the given player.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
The username to update. |
required |
Returns:
Type | Description |
---|---|
ResultT[PlayerDetail]
|
A |
Example
Source code in wom/services/players.py
RecordService
Bases: BaseService
Handles endpoints related to records.
Source code in wom/services/records.py
get_global_leaderboards
async
get_global_leaderboards(
metric: enums.Metric,
period: enums.Period,
*,
player_type: t.Optional[models.PlayerType] = None,
player_build: t.Optional[models.PlayerBuild] = None,
country: t.Optional[models.Country] = None
) -> ResultT[t.List[models.RecordLeaderboardEntry]]
Gets the global record leaderboards.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metric |
Metric
|
The metric to filter on. |
required |
period |
Period
|
The period of time to filter on. |
required |
Other Parameters:
Name | Type | Description |
---|---|---|
player_type |
Optional[PlayerType]
|
The optional player type to filter on. Defaults
to |
player_build |
Optional[PlayerBuild]
|
The optional player build to filter on.
Defaults to |
country |
Optional[Country]
|
The optional country to filter on. Defaults to
|
Returns:
Type | Description |
---|---|
ResultT[List[RecordLeaderboardEntry]]
|
A |