May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.
However, I ran into a snag. I cannot get "wordedForecast" using REST from what I can see. I can get it if I go here:
#!/usr/local/bin/php <?php // demo/temp_it_architect.php /** * https://www.experts-exchange.com/questions/28982054/PHP-code-to-retrieve-NDFD-weather-forecasts.html * * https://www.experts-exchange.com/articles/12239/Introduction-to-Application-Programming-Interfaces.html */ error_reporting(E_ALL); $url = <<<EOD http://graphical.weather.gov/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?whichClient=NDFDgenByDay&lat=42.8808333&lon=-85.5228056&listLatLon=&lat1=&lon1=&lat2=&lon2=&resolutionSub=&endPoint1Lat=&endPoint1Lon=&endPoint2Lat=&endPoint2Lon=¢erPointLat=¢erPointLon=&distanceLat=&distanceLon=&resolutionSquare=&zipCodeList=&citiesLevel=&format=24+hourly&startDate=&numDays=7&Unit=e&Submit=Submit EOD; // SHOW HOW TO RETRIEVE DATA FROM THE API $xml = file_get_contents($url); $obj = SimpleXML_Load_String($xml); echo '<pre>'; var_dump($obj);
The only problem is, I cannot get that to work with the above code. How can I access the data from this link?
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.