C# Class ACRCloudUploadFile.ACRCloudUploadFile

Show file 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, Object>.IDictionary headerParams, Object>.IDictionary postParams, int timeoutSecond ) : string
Upload ( Object>.IDictionary audioParams, Object>.IDictionary userParams, int timeoutSecond ) : string

Private Methods

Method Description
Main ( string args ) : void

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, Object>.IDictionary headerParams, Object>.IDictionary postParams, int timeoutSecond ) : string
url string
headerParams Object>.IDictionary
postParams Object>.IDictionary
timeoutSecond int
return string

Upload() public static method

public static Upload ( Object>.IDictionary audioParams, Object>.IDictionary userParams, int timeoutSecond ) : string
audioParams Object>.IDictionary
userParams Object>.IDictionary
timeoutSecond int
return string