I was able to get the api to load on my site that enforces https with a little bit of php.
Basically, I curl the http site and store the results on a page on my domain which is https so it works perfect for me.
I wrote a little function to do the work for me
<?php
#Defining the basic cURL function
function curl($url) {
$ch = curl_init(); // Initialising cURL
#Setting cURL's URL option with the $url variable passed into the function
curl_setopt($ch, CURLOPT_URL, $url);
#Setting cURL's option to return the webpage data
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
#Executing the cURL request and assigning the returned data to the $data variable
$data = curl_exec($ch);
#Closing cURL
curl_close($ch);
#Returning the data from the function
return $data;
}
echo $scraped_website = curl("http://www.example.com");
#I use http://api.openweathermap.org/data//2.5/weather?q=Saint+Louis%2C+MO&units=imperial&lang=nl&APPID=b923732c614593659457d8f33fb0d6fd&cnt=6 instead of "http://www.example.com"
?>
#Full snippet
<?php
// Defining the basic cURL function
function curl($url) {
$ch = curl_init(); // Initialising cURL
curl_setopt($ch, CURLOPT_URL, $url); // Setting cURL's URL option with the $url variable passed into the function
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); // Setting cURL's option to return the webpage data
$data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable
curl_close($ch); // Closing cURL
return $data; // Returning the data from the function
}
echo $scraped_website = curl("http://www.example.com");
?>
enter code here