From 1231666defd18b9cbb7a77f3c74b577f5cb95dda Mon Sep 17 00:00:00 2001 From: amolkal <36977946+amolkal@users.noreply.github.com> Date: Fri, 10 Aug 2018 16:19:24 -0500 Subject: [PATCH] Update README.md Platform attribute needs to be set on the message, to avoid Bad Request response from API. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 216f0fc..9bcf507 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ msg.api_key = "123"; // required msg.user_id = "xyz"; // required msg.intent = "test"; msg.version = "0.1"; +msg.platform = "Generic API"; msg.content = "This is a test."; msg.type = Chatbase.Message.UserMessage; // default, required msg.not_handled = false; // default @@ -56,6 +57,7 @@ agnMsg.SetMessageID("456"); agnMsg.SetMessageContent("hey"); agnMsg.intent = "say-hello"; agnMsg.version = "0.2"; +agnMsg.platform = "Facebook API"; var firstTask = client.Send(agnMsg); // User messages