Function aspotify::authorization_url[][src]

pub fn authorization_url(
    client_id: &str,
    scopes: impl IntoIterator<Item = Scope>,
    force_approve: bool,
    redirect_uri: &str
) -> (String, String)
Expand description

Get the URL to redirect the user’s browser to so that the URL can be generated for the Client::redirected function.

force_approve, if set, forces the user to approve the app again even if they already have. Make sure that you have whitelisted the redirect uri in your Spotify dashboard, and redirect_uri must not contain any query strings.

This method returns a tuple of the generated url and the state parameter, which is randomly generated for security.

This function is only available when the rand feature of this library is activated, and it is activated by default.

Reference.