From a3bf957100dfde256e54c610f35b783209ae2bdd Mon Sep 17 00:00:00 2001 From: Anton Koldaev Date: Sun, 10 Jan 2016 19:35:30 -0600 Subject: [PATCH] Update API example New behavior was introduced in https://github.com/hybridgroup/gobot/commit/5c9d44f391efa8f03a67c7adafdb7f41bc5fcd05 --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cbc58a4..71846078 100644 --- a/README.md +++ b/README.md @@ -168,8 +168,7 @@ You can also specify the api host and port, and turn on authentication: gbot := gobot.NewGobot() server := api.NewAPI(gbot) server.Port = "4000" - server.Username = "Gort" - server.Password = "klaatu" + server.AddHandler(api.BasicAuth("gort", "klatuu")) server.Start() ```