From 11c8df3ca1f1aac6bd893ea2ecb69f858faceda5 Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Sat, 13 Feb 2016 11:36:53 -0500 Subject: Moved CreateUser to Bridge.CreateUser --- bridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge.go') 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) -- cgit v1.2.3