/// <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()); }
/// <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()); }