WeatherApi
WeatherApi copied to clipboard
Error trying to get data with PHP file_get_contents
Hi, I trying to get query with file_get_contents but reicieve a 400 error. But if I put the url in browsers works ok. https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/weatherdata". "/forecast?unitGroup=metric&aggregateHours=24". "&location=41.7333,1.8333&key=KEY &contentType=json&locationMode=single
Where is the problem?