trophy_api_client 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gemconfig.rb +1 -1
- data/lib/trophy_api_client/users/client.rb +4 -4
- data/lib/trophy_api_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a95dbb430879c95ed350b8de2a77e74d126450896fcbb309ab33d1007c6a536
|
4
|
+
data.tar.gz: df4e465c4a22865fdb41228ab10c29ade0d17b394b14aa16c1337e8114a44898
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c29eb2612f426a3a4c5e8b071fd707043f336d5632228648e58f55ba7cf6aa2eaa5e0d912023bbe2500308282b6552ad47d5dd895af166ba69b8e857a24ebe43
|
7
|
+
data.tar.gz: a105c7f1fb858c9b3442acefd55a9d9a6e03dd7304b8a10f76453e8765883ea1a7e34da6dc57f815cd99cac20bf9e41965be210a9f4e4cc8b1efd9b595beb6b8
|
data/lib/gemconfig.rb
CHANGED
@@ -463,12 +463,12 @@ module TrophyApiClient
|
|
463
463
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
464
464
|
# api_key: "YOUR_API_KEY"
|
465
465
|
# )
|
466
|
-
# api.users.
|
466
|
+
# api.users.leaderboard(
|
467
467
|
# id: "user-123",
|
468
468
|
# key: "weekly-words",
|
469
469
|
# run: "2025-01-15"
|
470
470
|
# )
|
471
|
-
def
|
471
|
+
def leaderboard(id:, key:, run: nil, request_options: nil)
|
472
472
|
response = @request_client.conn.get do |req|
|
473
473
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
474
474
|
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -955,12 +955,12 @@ module TrophyApiClient
|
|
955
955
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
956
956
|
# api_key: "YOUR_API_KEY"
|
957
957
|
# )
|
958
|
-
# api.users.
|
958
|
+
# api.users.leaderboard(
|
959
959
|
# id: "user-123",
|
960
960
|
# key: "weekly-words",
|
961
961
|
# run: "2025-01-15"
|
962
962
|
# )
|
963
|
-
def
|
963
|
+
def leaderboard(id:, key:, run: nil, request_options: nil)
|
964
964
|
Async do
|
965
965
|
response = @request_client.conn.get do |req|
|
966
966
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|