Exemplo n.º 1
0
        public static string Get_AuthHeaderValue()
        {
            string apiKey           = "dibb0r7f7i3tg3v7jt3uee64b";
            string secret           = "dhhc9bcll6jdk";
            string Tp_UnixTimeStamp = "1559814414";
            string Tp_Mac           = apiKey + secret + Tp_UnixTimeStamp;
            //EAN APIKey=dibb0r7f7i3tg3v7jt3uee64b,Signature=2c7dbf484dcc2bb5f3dfe84969f8af011db137b939089b84ec9534bbc052e7151d5a22ca2b39356fe8f4c9f84842f91dfae0dfd3fb7dc94d5c25115e21b0473b,timestamp=1559792721
            string Tp_Encrypt_Mac = CTool.Get_SHA512_Encrypt(Tp_Mac);
            //===
            string authHeaderValue = "EAN APIKey=" + apiKey + ",Signature=" + Tp_Encrypt_Mac + ",timestamp=" + Tp_UnixTimeStamp;

            //===
            return(authHeaderValue);
        }
Exemplo n.º 2
0
 public static string Get_HelloWorld(string str) => CTool.Get_Do_HelloWorld() + str;