7 changed files with 51 additions and 12 deletions
@ -0,0 +1,32 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Controllers; |
|||
|
|||
use App\Admin\Metrics\Examples; |
|||
use App\Http\Controllers\Controller; |
|||
use Dcat\Admin\Http\Controllers\Dashboard; |
|||
use Dcat\Admin\Layout\Column; |
|||
use Dcat\Admin\Layout\Content; |
|||
use Dcat\Admin\Layout\Row; |
|||
use GuzzleHttp\Client; |
|||
|
|||
class TestController extends Controller |
|||
{ |
|||
public function platformCacheList() |
|||
{ |
|||
$query = http_build_query([ |
|||
'imei' => '866472059915631', |
|||
'start' => '2016-08-05T08:00:00', |
|||
]); |
|||
$client = new Client([ |
|||
'base_uri' => config('onenet.api_host'), |
|||
'headers' => [ |
|||
'api-key' => "knxzLGDiojaDvbIOvhG3QXRtScc=", |
|||
] |
|||
|
|||
]); |
|||
|
|||
$response = $client->request('GET', '/nbiot/offline/history?' . $query); |
|||
dump($response->getBody()->getContents()); |
|||
} |
|||
} |
Loading…
Reference in new issue