trophy_api_client 1.0.6 → 1.0.7
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 +12 -12
- 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: 41b13c271b0fdb5a50abd095f29e33f0f3619e526c86ebb6a7e199f94d414442
|
4
|
+
data.tar.gz: 2ccc3ab43e106bf29f0937115c41b6d335064df134e90fa9779c99ac7e34920b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ce2e3e945b755c71a2ff6935a1c805da673973968bdad4c322d04bd1cb1b3d8d712d8119a253556498893efdf2d43a1a6d23cdaa47c40fbb71bbdea610504cd
|
7
|
+
data.tar.gz: f79af533a1669fe538de22ed65bf95c3966b137f07bd6498a87e6940e561ba988909c83cdb1406f05c6a91ad72eddb26fe118c52a4c4a838d1499ae3c78664f2
|
data/lib/gemconfig.rb
CHANGED
@@ -134,8 +134,8 @@ module TrophyApiClient
|
|
134
134
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
135
135
|
# api_key: "YOUR_API_KEY"
|
136
136
|
# )
|
137
|
-
# api.users.
|
138
|
-
def
|
137
|
+
# api.users.all_metrics(id: "userId")
|
138
|
+
def all_metrics(id:, request_options: nil)
|
139
139
|
response = @request_client.conn.get do |req|
|
140
140
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
141
141
|
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -171,8 +171,8 @@ module TrophyApiClient
|
|
171
171
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
172
172
|
# api_key: "YOUR_API_KEY"
|
173
173
|
# )
|
174
|
-
# api.users.
|
175
|
-
def
|
174
|
+
# api.users.single_metric(id: "userId", key: "key")
|
175
|
+
def single_metric(id:, key:, request_options: nil)
|
176
176
|
response = @request_client.conn.get do |req|
|
177
177
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
178
178
|
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -203,8 +203,8 @@ module TrophyApiClient
|
|
203
203
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
204
204
|
# api_key: "YOUR_API_KEY"
|
205
205
|
# )
|
206
|
-
# api.users.
|
207
|
-
def
|
206
|
+
# api.users.all_achievements(id: "userId")
|
207
|
+
def all_achievements(id:, request_options: nil)
|
208
208
|
response = @request_client.conn.get do |req|
|
209
209
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
210
210
|
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -393,8 +393,8 @@ module TrophyApiClient
|
|
393
393
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
394
394
|
# api_key: "YOUR_API_KEY"
|
395
395
|
# )
|
396
|
-
# api.users.
|
397
|
-
def
|
396
|
+
# api.users.all_metrics(id: "userId")
|
397
|
+
def all_metrics(id:, request_options: nil)
|
398
398
|
Async do
|
399
399
|
response = @request_client.conn.get do |req|
|
400
400
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -432,8 +432,8 @@ module TrophyApiClient
|
|
432
432
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
433
433
|
# api_key: "YOUR_API_KEY"
|
434
434
|
# )
|
435
|
-
# api.users.
|
436
|
-
def
|
435
|
+
# api.users.single_metric(id: "userId", key: "key")
|
436
|
+
def single_metric(id:, key:, request_options: nil)
|
437
437
|
Async do
|
438
438
|
response = @request_client.conn.get do |req|
|
439
439
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -466,8 +466,8 @@ module TrophyApiClient
|
|
466
466
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
467
467
|
# api_key: "YOUR_API_KEY"
|
468
468
|
# )
|
469
|
-
# api.users.
|
470
|
-
def
|
469
|
+
# api.users.all_achievements(id: "userId")
|
470
|
+
def all_achievements(id:, request_options: nil)
|
471
471
|
Async do
|
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?
|