trophy_api_client 1.0.13 → 1.0.14
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 +10 -10
- 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: 8366072c3be65aa0e4fa350f5d0b0313f9d38e1d907cb59f63982b3da33f7700
|
4
|
+
data.tar.gz: ec64eee7eb6cd567cdbc765933a6ca983cdbdb82179b53390cde72627988e91d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7049e227b0c5609be15587e82dd7c76ea4e4b3075eb6a94ba70b24eeb640a4ae0e1210d00bc58cc251f82334d8c2e8cbc7a31f03375b7f1195daf303c0007f2
|
7
|
+
data.tar.gz: '036865ebf9e563fb0feb20af8b457a732a9667a22521b6d0f757cf16a7f929b307f336b74c458a97f28a65b83b035e5ced77a00230b69fe76a97eef2b1d47b75'
|
data/lib/gemconfig.rb
CHANGED
@@ -26,7 +26,7 @@ module TrophyApiClient
|
|
26
26
|
@request_client = request_client
|
27
27
|
end
|
28
28
|
|
29
|
-
#
|
29
|
+
# Create a new user.
|
30
30
|
#
|
31
31
|
# @param request [Hash] The user object.Request of type TrophyApiClient::UpsertedUser, as a Hash
|
32
32
|
# * :id (String)
|
@@ -93,9 +93,9 @@ module TrophyApiClient
|
|
93
93
|
TrophyApiClient::User.from_json(json_object: response.body)
|
94
94
|
end
|
95
95
|
|
96
|
-
#
|
96
|
+
# Identify a user.
|
97
97
|
#
|
98
|
-
# @param id [String] ID of the user to
|
98
|
+
# @param id [String] ID of the user to identify.
|
99
99
|
# @param request [Hash] The user object.Request of type TrophyApiClient::UpdatedUser, as a Hash
|
100
100
|
# * :email (String)
|
101
101
|
# * :name (String)
|
@@ -109,8 +109,8 @@ module TrophyApiClient
|
|
109
109
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
110
110
|
# api_key: "YOUR_API_KEY"
|
111
111
|
# )
|
112
|
-
# api.users.
|
113
|
-
def
|
112
|
+
# api.users.identify(id: "id", request: { email: "user@example.com", tz: "Europe/London" })
|
113
|
+
def identify(id:, request:, request_options: nil)
|
114
114
|
response = @request_client.conn.put do |req|
|
115
115
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
116
116
|
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -445,7 +445,7 @@ module TrophyApiClient
|
|
445
445
|
@request_client = request_client
|
446
446
|
end
|
447
447
|
|
448
|
-
#
|
448
|
+
# Create a new user.
|
449
449
|
#
|
450
450
|
# @param request [Hash] The user object.Request of type TrophyApiClient::UpsertedUser, as a Hash
|
451
451
|
# * :id (String)
|
@@ -516,9 +516,9 @@ module TrophyApiClient
|
|
516
516
|
end
|
517
517
|
end
|
518
518
|
|
519
|
-
#
|
519
|
+
# Identify a user.
|
520
520
|
#
|
521
|
-
# @param id [String] ID of the user to
|
521
|
+
# @param id [String] ID of the user to identify.
|
522
522
|
# @param request [Hash] The user object.Request of type TrophyApiClient::UpdatedUser, as a Hash
|
523
523
|
# * :email (String)
|
524
524
|
# * :name (String)
|
@@ -532,8 +532,8 @@ module TrophyApiClient
|
|
532
532
|
# environment: TrophyApiClient::Environment::DEFAULT,
|
533
533
|
# api_key: "YOUR_API_KEY"
|
534
534
|
# )
|
535
|
-
# api.users.
|
536
|
-
def
|
535
|
+
# api.users.identify(id: "id", request: { email: "user@example.com", tz: "Europe/London" })
|
536
|
+
def identify(id:, request:, request_options: nil)
|
537
537
|
Async do
|
538
538
|
response = @request_client.conn.put do |req|
|
539
539
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|