Ejemplo n.º 1
0
        /// <summary>
        /// Generate autorization header for POST methods.
        /// </summary>
        /// <param name="POSTDataToSend">Json object with data to send in query.</param>
        /// <returns>Dictonar, key is param name, value is value of this param.</returns>
        public Dictionary <string, string> AddOwnHeaderPOST(object POSTDataToSend)
        {
            string JsonSerializedObject = Serialize.AsJson(POSTDataToSend);

            string hash = GenerateHash(config.PublicKey, unixTS, JsonSerializedObject);

            return(AddAutorizationHeader(hash));
        }