/// <summary>
        ///     Generates a Box-pointing URL to which a user can be redirected for authentication
        /// </summary>
        /// <returns>The URL</returns>
        /// <remarks>A Ticket is requested from Box and locally set as a result of this call.</remarks>
        public string GetAuthorizationUrl()
        {
            SetTicket();
            IRestRequest request = _requestHelper.AuthorizationUrl(Ticket);

            return(_restClient.BuildUri(request).AbsoluteUri);
        }
示例#2
0
        public string GetAuthorizationUrl(string redirectUri = null)
        {
            IRestRequest request = _requestHelper.AuthorizationUrl(_clientId, redirectUri);

            return(_restClient.BuildUri(request).AbsoluteUri);
        }