Question

can any buddy have any code in which with the help of api I can see the weather updates for one week, if any buddy have any tutorial then plz given it to me..

either it is implemented for iphone or for php

thnks

Was it helpful?

OTHER TIPS

Here's a php example (Note : Needs a valid API-KEY from openweathermap.org)

$url = 'http://api.openweathermap.org/data/2.5/forecast?q=London,us&mode=xml&appid=<API-KEY>'
$forecast = file_get_contents($url);

You can get forecast by city name, city ID, latitude & longitude etc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top