Skip to content

Commit 7b4a005

Browse files
committed
small readme change
1 parent aca97a8 commit 7b4a005

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ Connect to the UID2 service, refresh the encryption keys, and then use the keys
1515
```
1616
from uid2_client import Uid2Client, decrypt
1717
18-
client = Uid2Client('https://prod.uidapi.com', 'my-auth-token', 'my-secret-key', IdentityScope.UID2)
19-
keys = client.refresh_keys()
18+
# for UID2 (for EUID use EuidClientFactory)
19+
client = Uid2ClientFactory.create('https://prod.uidapi.com', 'my-auth-token', 'my-secret-key')
20+
client.refresh_keys()
2021
advertising_token = 'AgAAAANRdREk+IWqqnQkZ2rZdK0TgSUP/owLryysSkUGZJT+Gy551L1WJMAZA/G2B1UMDQ20WAqwwTu6o9TexWyux0lg0HHIbmJjN6IYwo+42KC8ugaR+PX0y18qQ+3yzkxmJ/ee//4IGu/1Yq4AmO4ArXN6CeszPTxByTkysVqyQVNY2A=='
21-
decrypted_token = client.decrypt(advertising_token, keys)
22+
decrypted_token = client.decrypt(advertising_token)
2223
print(decrypted_token.uid2)
2324
```
2425

0 commit comments

Comments
 (0)