1]; $json = getContents(self::API_URI, $header, $opts); $spots = json_decode($json, true); foreach ($spots as $spot) { $title = $spot['activator'] . ' @ ' . $spot['reference'] . ' ' . $spot['frequency'] . ' kHz'; $park_link = self::URI . '/park/' . $spot['reference']; $content = << {$spot['reference']}, {$spot['name']}
Location: {$spot['locationDesc']}
Frequency: {$spot['frequency']} kHz
Spotter: {$spot['spotter']}
Comments: {$spot['comments']} EOL; $this->items[] = [ 'uri' => $park_link, 'title' => $title, 'content' => $content, 'timestamp' => $spot['spotTime'] ]; } } }