Skip to content

Commit ae36179

Browse files
committed
tidy up imports and some other small changes.
1 parent 8ad3e19 commit ae36179

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

examples/sample_auto_refresh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import time
44

55
from uid2_client import EncryptionKeysAutoRefresher
6-
from uid2_client.euid_client_factory import EuidClientFactory
7-
from uid2_client.uid2_client_factory import Uid2ClientFactory
6+
from uid2_client import EuidClientFactory
7+
from uid2_client import Uid2ClientFactory
88

99

1010
def _usage():

examples/sample_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _usage():
2121
ad_token = sys.argv[4]
2222
str_data = sys.argv[5]
2323

24-
client = Uid2Client(base_url, auth_key, secret_key, IdentityScope.UID2)
24+
client = Uid2Client(base_url, auth_key, secret_key)
2525
keys = client.refresh_keys()
2626

2727
data = bytes(str_data, 'utf-8')

examples/sample_sharing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22

3-
from uid2_client.euid_client_factory import EuidClientFactory
4-
from uid2_client.uid2_client_factory import Uid2ClientFactory
3+
from uid2_client import EuidClientFactory
4+
from uid2_client import Uid2ClientFactory
55

66

77
# this sample client encrypts and decrypts a uid2 to a sharing token

uid2_client/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@
1212
from .client import *
1313
from .encryption import *
1414
from .keys import *
15+
from .euid_client_factory import *
16+
from .uid2_client_factory import *
1517

1618

uid2_client/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def __init__(self, base_url, auth_key, secret_key):
4747
base_url (str): base URL for all requests to UID2 services (e.g. 'https://prod.uidapi.com')
4848
auth_key (str): authorization key for consuming the UID2 services
4949
secret_key (str): secret key for consuming the UID2 services
50-
identity_scope (IdentityScope): UID2 or EUID
5150
5251
Note:
5352
Your authorization key will determine which UID2 services you are allowed to use.

0 commit comments

Comments
 (0)