Skip to content

Commit

Permalink
Merge pull request hybridgroup#254 from iroller/patch-1
Browse files Browse the repository at this point in the history
Update API example
  • Loading branch information
deadprogram committed Feb 3, 2016
2 parents ef61647 + 6d5935f commit 5d457a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```

Expand Down

0 comments on commit 5d457a3

Please sign in to comment.