Skip to content

Commit

Permalink
fix: updated host endpoints (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed Jan 14, 2022
1 parent 997366c commit efe2b9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sdk/src/main/java/io/customer/sdk/data/model/Region.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ package io.customer.sdk.data.model
* The SDK will route traffic to the correct data center location depending on the `Region` that you use.
*/
sealed class Region(val code: String, val baseUrl: String) {
object US : Region(code = "us", baseUrl = "https://track.customer.io/")
object EU : Region(code = "eu", baseUrl = "https://track-eu.customer.io/")

// Note: These URLs are meant to be used specifically by the official
// mobile SDKs. View our API docs: https://customer.io/docs/api/
// to find the correct hostname for what you're trying to do.
object US : Region(code = "us", baseUrl = "https://track-sdk.customer.io/")
object EU : Region(code = "eu", baseUrl = "https://track-sdk-eu.customer.io/")
}

0 comments on commit efe2b9e

Please sign in to comment.