C# Class ACRCloudWebAPITest.IdentifyProtocolV2

Exibir arquivo Open project: acrcloud/webapi_example Class Usage Examples

Public Methods

Method Description
encodeToBase64 ( byte input ) : string
encryptByHMACSHA1 ( string input, string key ) : string
postHttp ( string url, string>.IDictionary datas, int timeout ) : string
recognize ( string host, string accessKey, string secretKey, byte queryData, string queryType, int timeout = 8000 ) : string

Method Details

encodeToBase64() public static method

public static encodeToBase64 ( byte input ) : string
input byte
return string

encryptByHMACSHA1() public static method

public static encryptByHMACSHA1 ( string input, string key ) : string
input string
key string
return string

postHttp() public static method

public static postHttp ( string url, string>.IDictionary datas, int timeout ) : string
url string
datas string>.IDictionary
timeout int
return string

recognize() public static method

public static recognize ( string host, string accessKey, string secretKey, byte queryData, string queryType, int timeout = 8000 ) : string
host string
accessKey string
secretKey string
queryData byte
queryType string
timeout int
return string