# HG changeset patch # User Mikael Berthe # Date 1492011197 -7200 # Node ID 519be52bfced15334b0a508324a572438adae961 # Parent adc39ae774c0bf11416e7ea1e8a75ad6a11ea3b7 Some Fixes diff -r adc39ae774c0 -r 519be52bfced app.go --- a/app.go Wed Apr 12 16:40:02 2017 +0200 +++ b/app.go Wed Apr 12 17:33:17 2017 +0200 @@ -32,8 +32,9 @@ } g = &Client{ - Name: name, - APIBase: apiPath, + Name: name, + APIBase: apiPath, + InstanceURL: instanceURL, } req := g.prepareRequest("apps") @@ -58,10 +59,6 @@ log.Fatalf("error can not register app: %v", err) } - if err != nil { - log.Fatalf("error: can not write token for %s", name) - } - g.ID = resp.ClientID g.Secret = resp.ClientSecret diff -r adc39ae774c0 -r 519be52bfced cmd/gondole-cli/main.go --- a/cmd/gondole-cli/main.go Wed Apr 12 16:40:02 2017 +0200 +++ b/cmd/gondole-cli/main.go Wed Apr 12 17:33:17 2017 +0200 @@ -26,7 +26,7 @@ defaultInstanceURL = "https://mastodon.social" ) -// Config holds our parameters +// Server holds our application details type Server struct { ID string `json:"id"` Name string `json:"name"`