# HG changeset patch # User Mikael Berthe # Date 1493643297 -7200 # Node ID 6fe8c96e7263174268f09925c75e32234c3427ae # Parent bc53768d9c8c97978946507a445d2e7aca17a5a8 Add 'website' parameter to application registration diff -r bc53768d9c8c -r 6fe8c96e7263 app.go --- a/app.go Mon May 01 06:34:53 2017 +0000 +++ b/app.go Mon May 01 14:54:57 2017 +0200 @@ -46,7 +46,7 @@ } // NewApp registers a new application with a given instance -func NewApp(name string, scopes []string, redirectURI, instanceName string) (mc *Client, err error) { +func NewApp(name, website string, scopes []string, redirectURI, instanceName string) (mc *Client, err error) { instanceURL, err := buildInstanceURL(instanceName) if err != nil { return nil, err @@ -60,6 +60,9 @@ params := make(apiCallParams) params["client_name"] = name + if website != "" { + params["website"] = website + } params["scopes"] = strings.Join(scopes, " ") if redirectURI != "" { params["redirect_uris"] = redirectURI