From ab587b4968f2e7a511d525064e85d7895eeb5c4c Mon Sep 17 00:00:00 2001 From: Nuno Sousa Date: Tue, 31 Oct 2023 18:20:21 +0000 Subject: [PATCH 1/2] Add host docs to README --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dfd50727..d26a2f76 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,22 @@ pip3 install git+http://github.com/customerio/cdp-analytics-python ## Usage ```python -from customerio_cdp_analytics import analytics +from customerio import analytics analytics.write_key = 'YOUR_WRITE_KEY' analytics.track(user_id=4, event='order_complete') ``` + +## Other Regions + +If you're using a [different data center](https://customer.io/docs/accounts-and-workspaces/data-centers/) such as our EU region, you can specify an alternate endpoint: + +```python +from customerio import analytics + +analytics.write_key = 'YOUR_WRITE_KEY' +analytics.host = 'https://cdp-eu.customer.io' + +analytics.track(user_id=4, event='order_complete') +``` From 27b6795cd5f3806cf2510af18845077d58f7ee4e Mon Sep 17 00:00:00 2001 From: Nuno Sousa Date: Thu, 2 Nov 2023 11:54:09 +0000 Subject: [PATCH 2/2] Add documentation links --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d26a2f76..b21aa40c 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,11 @@ analytics.host = 'https://cdp-eu.customer.io' analytics.track(user_id=4, event='order_complete') ``` + +## Documentation + +The links below contain more detailed documentation on how to use this library: + +* [Documentation](https://customer.io/docs/cdp/sources/connections/servers/python/) +* [Specs](https://customer.io/docs/cdp/sources/source-spec/source-events/) +* [PyPi](https://pypi.org/project/customerio-cdp-analytics/)