|
新年快乐~
感谢关注~~~
获取代码如下:
- function get_app_token()
- {
- $appid="90144f41e62d42f5a044e1cbab5017e8";
- $secret="2163cb544c7d400b8f556f7f4778f969";
- $signature = MD5($appid.$secret);
- echo $signature;
- $header=array(
- 'Content-Type:application/json',
- 'X-Gizwits-Application-Id:90144f41e62d42f5a044e1cbab5017e8',
- 'X-Gizwits-Application-Auth:'.$signature.''
- );
- $result=curl_post('https://api.gizwits.com/app/request_token',"",30,$header);
- echo '<pre>';
- print_r($result);
- return $result;
- }
复制代码 返回结果:
- 9fa11f4c0318c77389d319c0597880eb//这里是signature
- Array
- (
- [output] =>
- [code] => 0
- )
复制代码 请问是哪里出了问题吗?
其中appid+appsecret是不是直接字符串进行拼接,然后通过MD5生成signature?
谢谢~~
|
|