function getRelayInfo($ServerDevice, $PK_Device, $SessionToken) { $url = "https://" . $ServerDevice . "/device/device/device/" . $PK_Device; $headers = array(); $headers[] = 'MMSSession: ' . $SessionToken; $req = new MyHttpRequest(); $data = $req->get($url, $headers); $obj = json_decode($data); return $obj; }