From 0af4578228d952b0269ab224fa2d339b8a40f171 Mon Sep 17 00:00:00 2001 From: Samantha John Date: Tue, 17 Jul 2018 16:53:24 -0400 Subject: [PATCH] Update docs to reflect new syntax for configuring the API key. --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b13bcb3..3ba59cc 100644 --- a/readme.md +++ b/readme.md @@ -15,7 +15,8 @@ The following code snippet will immediately track an event to the Amplitude API. ```ruby # Configure your Amplitude API key -AmplitudeAPI.api_key = "abcdef123456" +AmplitudeAPI.config.api_key = "abcdef123456" + event = AmplitudeAPI::Event.new({ user_id: "123",