Skip to content

Commit

Permalink
Address the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
caroline-ttd committed May 15, 2024
1 parent 7dcafc3 commit 7f29ce4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/sample_identity_map_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
# which contains raw uid or the reason why it is unmapped

def _usage():
print('Usage: python3 sample_sharing_client.py <base_url> <auth_key> <secret_key> <email_list>', file=sys.stderr)
print('Usage: python3 sample_sharing_client.py <base_url> <auth_key> <secret_key> <email_1> <email_2> ... <email_n>'
, file=sys.stderr)
sys.exit(1)


Expand Down Expand Up @@ -35,4 +36,3 @@ def _usage():
unmapped_identity = unmapped_identities.get(first_email)
reason = unmapped_identity.get_reason()
print('reason =', reason)

10 changes: 5 additions & 5 deletions uid2_client/identity_map_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class IdentityMapClient:
"""Client for interacting with UID2 Identity Map services
"""Client for interacting with UID Identity Map services
You will need to have the base URL of the endpoint and a client API key
and secret to consume web services.
Expand All @@ -21,12 +21,12 @@ def __init__(self, base_url, auth_key, secret_key):
"""Create a new IdentityMapClient client.
Args:
base_url (str): base URL for all requests to UID2 services (e.g. 'https://prod.uidapi.com')
auth_key (str): authorization key for consuming the UID2 services
secret_key (str): secret key for consuming the UID2 services
base_url (str): base URL for all requests to UID services (e.g. 'https://prod.uidapi.com')
auth_key (str): authorization key for consuming the UID services
secret_key (str): secret key for consuming the UID services
Note:
Your authorization key will determine which UID2 services you are allowed to use.
Your authorization key will determine which UID services you are allowed to use.
"""
self._base_url = base_url
self._auth_key = auth_key
Expand Down

0 comments on commit 7f29ce4

Please sign in to comment.