aboutsummaryrefslogtreecommitdiff
path: root/bridge.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge.go')
-rw-r--r--bridge.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge.go b/bridge.go
index ec2f050..4785175 100644
--- a/bridge.go
+++ b/bridge.go
@@ -171,7 +171,7 @@ func GetBridgeInfo(self *Bridge) error {
}
// CreateUser posts to ./api on the bridge to create a new whitelisted user.
-func CreateUser(bridge *Bridge, deviceType string) (string, error) {
+func (bridge *Bridge) CreateUser(deviceType string) (string, error) {
// Send an HTTP POST with the body content
params := map[string]string{"devicetype": deviceType}
body, _, err := bridge.Post("/api", params)