Skip to content

Commit 30b8814

Browse files
committed
include write key in auth header when sending events
1 parent f5e2210 commit 30b8814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keen/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def post_event(self, event):
5252
url = "{0}/{1}/projects/{2}/events/{3}".format(self.base_url, self.api_version,
5353
self.project_id,
5454
event.collection_name)
55-
headers = {"Content-Type": "application/json"}
55+
headers = {"Content-Type": "application/json", "Authorization": self.write_key}
5656
payload = event.to_json()
5757
response = requests.post(url, data=payload, headers=headers)
5858
if response.status_code != 201:

0 commit comments

Comments
 (0)