amplitude / Amplitude-Kotlin

Amplitude Kotlin SDK
MIT License
28 stars 11 forks source link

Why is the default server url the http api? #101

Closed kennedyjosh closed 1 year ago

kennedyjosh commented 1 year ago

On this page from the Amplitude documentation it says that the SDKs have custom payloads and their own endpoint that differs from the standard HTTP endpoint. Specifically, it claims that the SDKs should use endpoint at https://api2.amplitude.com/ instead of https://api2.amplitude.com/2/httpapi/.

However, the DEFAULT_API_HOST (if setServerUrl is not used) seems to be the http endpoint. Why is this?

kevinpagtakhan commented 1 year ago

Hi @kennedyjosh, thank you for pointing this out. The information you mentioned is only true for our legacy SDKs. The newer SDKs build 2022 and beyond are defaulted to use https://api2.amplitude.com/2/httpapi/. We'll update our docs.

yuhao900914 commented 1 year ago

Hi @kennedyjosh, we just update our docs. The changes will be live soon. We are listing all the required endpoints for different SDKs. Thanks.

kennedyjosh commented 1 year ago

@yuhao900914 is there somewhere I can report additional documentation bugs?

yuhao900914 commented 1 year ago

@kennedyjosh is it related to Kotlin? Feel free to leave it in Kotlin repo, or you can create a issue at https://github.com/Amplitude-Developer-Docs/amplitude-dev-center