public static string recognize(string host, string accessKey, string secretKey, byte[] queryData, string queryType, int timeout = 8000)
{
string method = "POST";
string httpURL = "/v1/identify";
string dataType = queryType;
string sigVersion = "1";
string timestamp = ((int)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalSeconds).ToString();
string reqURL = "http://" + host + httpURL;
string sigStr = method + "\n" + httpURL + "\n" + accessKey + "\n" + dataType + "\n" + sigVersion + "\n" + timestamp;
string signature = encryptByHMACSHA1(sigStr, secretKey);
var dict = new Dictionary<string, object>();
dict.Add("access_key", accessKey);
dict.Add("sample_bytes", queryData.Length.ToString());
dict.Add("sample", queryData);
dict.Add("timestamp", timestamp);
dict.Add("signature", signature);
dict.Add("data_type", queryType);
dict.Add("signature_version", sigVersion);
string res = postHttp(reqURL, dict, timeout);
return res;
}