Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="credentials"></param>
        /// <param name="preApproval"></param>
        /// <returns></returns>
        internal static string BuildPreApprovalUrl(Credentials credentials, PreApprovalRequest preApproval)
        {
            var builder = new QueryStringBuilder();
            var data    = PreApprovalParse.GetData(preApproval);

            builder.EncodeCredentialsAsQueryString(credentials);

            foreach (var pair in data)
            {
                builder.Append(pair.Key, pair.Value);
            }

            return(builder.ToString());
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="credentials"></param>
        /// <param name="preApproval"></param>
        /// <returns></returns>
        internal static string BuildPreApprovalUrl(Credentials credentials, PreApprovalRequest preApproval)
        {
            QueryStringBuilder           builder = new QueryStringBuilder();
            IDictionary <string, string> data    = PreApprovalParse.GetData(preApproval);

            builder.
            EncodeCredentialsAsQueryString(credentials);

            foreach (KeyValuePair <string, string> pair in data)
            {
                builder.Append(pair.Key, pair.Value);
            }

            return(builder.ToString());
        }