<?php
// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://iot.wra.gov.tw/river/stations');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');

$token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InN0ZXZlMDdzIiwicm9sZSI6IlVzZXIiLCJuYmYiOjE2Mzk3MjYzMjMsImV4cCI6MTYzOTcyODEyMywiaWF0IjoxNjM5NzI2MzIzLCJpc3MiOiJIeWRyb2xvZ3kuT0F1dGgyIiwiYXVkIjoiSHlkcm9sb2d5Lk9wZW5EYXRhQXBpIn0.-1rciu0dhIPQivUjKyyjEau9I6g8yFng8WeB5bz1Ggs";
$headers = array();
$headers[] = 'Accept: */*';
$headers[] = 'Authorization: Bearer '.$token;
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);

echo(($result));


?>