oauth.go
func (o OAuth) CreateAuthorizeUrl(scope []string) string {
	Url, _ := url.Parse("https://coinbase.com")
	Url.Path += "/oauth/authorize"

	parameters := url.Values{}
	parameters.Add("response_type", "code")
	parameters.Add("client_id", o.ClientId)
	parameters.Add("redirect_uri", o.RedirectUri)
	parameters.Add("scope", strings.Join(scope, " "))
	Url.RawQuery = parameters.Encode()

	return Url.String()
}
func (o OAuth) CreateAuthorizeUrl(scope []string) string {
	Url, _ := url.Parse("https://coinbase.com")
	Url.Path += "/oauth/authorize"

	parameters := url.Values{}
	parameters.Add("response_type", "code")
	parameters.Add("client_id", o.ClientId)
	parameters.Add("redirect_uri", o.RedirectUri)
	parameters.Add("scope", strings.Join(scope, " "))
	Url.RawQuery = parameters.Encode()

	return Url.String()
}
func ( o OAuth ) CreateAuthorizeUrl ( scope [ ] string ) string { Url , _ := url . Parse ( " " ) Url . Path += " " parameters := url . Values { } parameters . Add ( " " , " " ) parameters . Add ( " " , o . ClientId ) parameters . Add ( " " , o . RedirectUri ) parameters . Add ( " " , strings . Join ( scope , " " ) ) Url . RawQuery = parameters . Encode ( ) return Url . String ( ) }
// CreateAuthorizeUrl create the Authorize Url used to redirect users for
// coinbase app authorization. The scope parameter includes the specific
// permissions one wants to ask from the user
CreateAuthorizeUrl create the Authorize Url used to redirect users for coinbase app authorization . The scope parameter includes the specific permissions one wants to ask from the user