Skip to content

Commit d48e879

Browse files
committed
Revert timestamp
1 parent ba45cba commit d48e879

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

uid2_client/identity_map_client.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,8 @@ def __init__(self, base_url, api_key, client_secret):
3434
self._api_key = api_key
3535
self._client_secret = base64.b64decode(client_secret)
3636

37-
def generate_identity_map(self, identity_map_input, timestamp=None):
38-
"""Generate identity map.
39-
40-
Args:
41-
identity_map_input: Input for identity map generation.
42-
timestamp: Optional timestamp for the request. If not provided, the current UTC time is used.
43-
"""
44-
if timestamp is None:
45-
timestamp = dt.datetime.now(tz=timezone.utc)
46-
47-
req, nonce = make_v2_request(self._client_secret, timestamp,
37+
def generate_identity_map(self, identity_map_input):
38+
req, nonce = make_v2_request(self._client_secret, dt.datetime.now(tz=timezone.utc),
4839
identity_map_input.get_identity_map_input_as_json_string().encode())
4940
resp = post(self._base_url, '/v2/identity/map', headers=auth_headers(self._api_key), data=req)
5041
resp_body = parse_v2_response(self._client_secret, resp.read(), nonce)

0 commit comments

Comments
 (0)