/// <summary> /// Creates a new <see cref="AuthorizationUrlBuilder"/> seeded with your /// client configuration. /// </summary> /// <param name="redirectUri"> /// The URI to redirect the user's response for the authorization /// request to, must not be empty. /// </param> /// <returns> /// Returns a new <see cref="AuthorizationUrlBuilder"/>. /// </returns> /// <remarks> /// The read_account, read_events, create_event, and delete_event scopes /// are requested by default. /// </remarks> /// <exception cref="System.ArgumentException"> /// Thrown if <paramref name="redirectUri"/> is null or empty. /// </exception> public AuthorizationUrlBuilder GetAuthorizationUrlBuilder(string redirectUri) { Preconditions.NotEmpty("redirectUri", redirectUri); return(new AuthorizationUrlBuilder(this.clientId, this.urlProvider, redirectUri)); }