You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
828 B

<?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());
}
}