Example #1
0
        private void GenerateHashLine(String url, NameValueCollection authParams, NameValueCollection queryParams, NameValueCollection postParams)
        {
            StringBuilder sb = new StringBuilder ();
              sb.Append (HttpMethod);
              sb.Append ("&");
              sb.Append (url.EncodeRfc());
              sb.Append ("&");

              foreach(String key in authParams.SortKeys())
              {
            sb.Append(key.EncodeRfc());
            sb.Append("%3D");
            sb.Append(authParams[key].EncodeRfc());
            sb.Append("%26");
              }

              if( queryParams != null )
              {
            //process
              }

              if( postParams != null )
              {
            //process
              }

              sb.Remove ((sb.Length - 3), 3);
              _hashLine = sb.ToString();
        }