Skip to content

Commit d9af6a6

Browse files
authored
Add endpoint docs to README (#2)
1 parent b7c25e6 commit d9af6a6

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Readme.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,36 @@ func main() {
3030
client.Close()
3131
}
3232
```
33+
34+
## Other Regions
35+
36+
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:
37+
38+
```go
39+
package main
40+
41+
import (
42+
"os"
43+
44+
"github.com/customerio/cdp-analytics-go"
45+
)
46+
47+
func main() {
48+
client, err := analytics.NewWithConfig(os.Getenv("WRITE_KEY"), analytics.Config{
49+
Endpoint: "https://cdp-eu.customer.io",
50+
})
51+
if err != nil {
52+
panic(err)
53+
}
54+
55+
// ...
56+
}
57+
```
58+
59+
## Documentation
60+
61+
The links below contain more detailed documentation on how to use this library:
62+
63+
* [Documentation](https://customer.io/docs/cdp/sources/connections/servers/go/)
64+
* [Specs](https://customer.io/docs/cdp/sources/source-spec/source-events/)
65+
* [godoc](https://pkg.go.dev/github.com/customerio/cdp-analytics-go)

0 commit comments

Comments
 (0)