Skip to content

Instantly share code, notes, and snippets.

@oliveratgithub
Last active September 21, 2015 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliveratgithub/890bb1be9eb9ec6e7982 to your computer and use it in GitHub Desktop.
Save oliveratgithub/890bb1be9eb9ec6e7982 to your computer and use it in GitHub Desktop.
Example call to accuweather.com from Apple's Weather Dashboard Widget in OS X Yosemite, http://apple.accuweather.com/adcbin/apple/Apple_find_city.asp?location=Zurich
<adc_Database xmlns="http://www.accuweather.com">
<CityList us="4" intl="3" extra_cities="0">
<location city="Zurich" state="KS" postal="lid_2137121"/>
<location city="Zurich" state="NY" postal="lid_2171451"/>
<location city="Zurich" state="MT" postal="lid_349249"/>
<location city="Zurich" state="CA" postal="lid_2143185"/>
<location city="Zurich" state="Switzerland (Zurich)" postal="lid_316622"/>
<location city="Zurich" state="Netherlands (Friesland)" postal="lid_247882"/>
<location city="Zurich" state="Canada (Ontario)" postal="lid_2289281"/>
</CityList>
<copyright>Copyright 2015 AccuWeather.com</copyright>
<use>Apple Widget - This document is intended only for use by authorized licensees of AccuWeather.com. Unauthorized use is prohibited. All Rights Reserved.</use>
<redistribution>Redistribution Prohibited.</redistribution>
</adc_Database>
@oliveratgithub
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment