You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ Install `interakt-track-python` using pip
8
8
pip install interakt-track-python
9
9
10
10
## Authentication
11
-
Inside your app, you’ll want to **set your**`write_key` before making any track calls:
11
+
Inside your app, you’ll want to **set your**`api_key` before making any track calls:
12
12
```
13
13
import track
14
14
15
-
track.write_key = "YOUR_WRITE_KEY"
15
+
track.api_key = "YOUR_API_KEY"
16
16
```
17
17
Interakt Track APIs uses HTTP Basic Auth, which involves a `‘username:password’` that is **base64 encoded** and prepended with the string `‘Basic ‘`.
18
18
19
-
Your **write_key** is your `username` and `password` is empty. Which means if your **write_key** is `'abcd123'`, a colon is added to it, and then the password field is left empty.
19
+
Your **api_key** is your `username` and `password` is empty. Which means if your **api_key** is `'abcd123'`, a colon is added to it, and then the password field is left empty.
20
20
21
21
After base64 encoding `'abcd123:'` becomes `'YWJjZDEyMzo='`; and this is passed in the authorization header like so: `'Authorization: Basic YWJjZDEyMzo='`
22
22
@@ -61,7 +61,7 @@ track.identify(
61
61
}
62
62
)
63
63
```
64
-
The `identify` call has the following fields:
64
+
#### The `identify` call has the following fields:
65
65
|Field|Data type|Description|
66
66
|--|--|--|
67
67
|user_id|str or int|The ID for the user in your database.|
0 commit comments