### 需要授权的接口如何调用(任选一种即可) * 置于`POST BODY`段,字段名 `api_key`、`timestamp`、`sign` * 置于`HTTP HEADER`段,字段名 `api-key`、`timestamp`、`sign` * 置于`COOKIE`段,字段名 `api_key`、`timestamp`、`sign` ### 签名算法 php示例 ``` /** * [apiGenerateSignature 生成签名] * @param [type] $timestamp [时间戳] * @param [type] $api_key [api_key] * @param [type] $secret_key [secret_key] * @return [type] [sign签名字段] */ function apiGenerateSignature($timestamp, $api_key, $secret_key ) { $token = $secret_key; $tmpArr = array($token, $timestamp, $api_key); sort($tmpArr, SORT_STRING); $tmpStr = implode( $tmpArr ); $signature = sha1( $tmpStr ); return $signature; } ```