protected Dictionary <string, string> createParam(ZaloOaInfo oaInfo, JObject data) { long timestamp = (long)(DateTime.UtcNow - Jan1st1970).TotalMilliseconds; StringBuilder macContent = new StringBuilder(); macContent.Append(oaInfo.oaId); Dictionary <string, string> param = new Dictionary <string, string>(); if (data["file"] == null) { foreach (var item in data) { macContent.Append(item.Value); param.Add(item.Key, item.Value.ToString()); } } macContent.Append(timestamp); macContent.Append(oaInfo.secretKey); string mac = MacUtils.buildMac(macContent.ToString()); param.Add("oaid", oaInfo.oaId.ToString()); param.Add("timestamp", timestamp.ToString()); param.Add("mac", mac); return(param); }
public ZaloOaClient(ZaloOaInfo oaInfo) { OaInfo = oaInfo; }