(clientID, scope, redirectURI string)
| 9 | ) |
| 10 | |
| 11 | func buildAuthURL(clientID, scope, redirectURI string) string { |
| 12 | |
| 13 | // Using net/url to safely build the URL and encode parameters |
| 14 | params := url.Values{} |
| 15 | params.Add("response_type", "code") |
| 16 | params.Add("client_id", clientID) |
| 17 | params.Add("redirect_uri", redirectURI) |
| 18 | params.Add("scope", scope) |
| 19 | |
| 20 | return fmt.Sprintf("%s?%s", classes.AuthorizeV2Endpoint, params.Encode()) |
| 21 | } |
| 22 | |
| 23 | // func parseRespTokens(respBody string) (*classes.TokenResponse, error) { //in case you want to return the json for something in future |
| 24 | func parseRespTokens(respBody string) error { |
no outgoing calls
no test coverage detected