|
加急询问一下 调用API-- Query Device
得到如下返回
string(82) "{"error_message": "device not found!", "error_code": 9014, "detail_message": null}"
是哪里错了
源码
:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://api.gizwits.com/app/devices?product_key=63e1fa3e66414763b8ff5f3fb63513b1&mac=ACC??????250");//这里是得到的开发板的真实mac
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Content-Type: application/json",
"X-Gizwits-Application-Id: bac6df901ca840fbaddb9933c89fc21e"
));
$response = curl_exec($ch);
curl_close($ch);
var_dump($response); |
|