From 321c06926dc044676002bdfb09ad933dd3c11791 Mon Sep 17 00:00:00 2001 From: "Ian H. Bateman" Date: Thu, 12 Aug 2021 10:26:52 -0400 Subject: [PATCH] Update client.go to use Amplitude API v2 Just updated the URL; there shouldn't be any breaking changes according to: https://developers.amplitude.com/docs/http-api-v2#http-api-v2-improvements, although there is better validation / error reporting & messages, etc. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index d6583c5..855f35c 100644 --- a/client.go +++ b/client.go @@ -7,7 +7,7 @@ import ( "net/url" ) -const eventEndpoint = "https://api.amplitude.com/httpapi" +const eventEndpoint = "https://api.amplitude.com/2/httpapi" const identifyEndpoint = "https://api.amplitude.com/identify" // Client manages the communication to the Amplitude API