Пример #1
0
            public static string NormalizeRequestParameters(IList <Card_Account_Transactions.OAuth_Utilities.QueryParameter> parameters)
            {
                StringBuilder sb = new StringBuilder();

                OAuth_Utilities.QueryParameter p = null;
                for (int i = 0; i < parameters.Count; i++)
                {
                    p = parameters[i];
                    sb.AppendFormat("{0}={1}", p.Name, p.Value);

                    if (i < parameters.Count - 1)
                    {
                        sb.Append("&");
                    }
                }

                return(sb.ToString());
            }
Пример #2
0
        public string createHeader(IList <QueryParameter> parameters)
        {
            StringBuilder sb = new StringBuilder();

            OAuth_Utilities.QueryParameter p = null;
            for (int i = 0; i < parameters.Count; i++)
            {
                p = parameters[i];
                sb.AppendFormat("{0}={1}", p.Name, p.Value);

                if (i < parameters.Count - 1)
                {
                    sb.Append(",");
                }
            }

            return(sb.ToString());
        }