Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Created August 9, 2012 20:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisjlee/3307936 to your computer and use it in GitHub Desktop.
Save chrisjlee/3307936 to your computer and use it in GitHub Desktop.
php script to consume google weather api webservice
<?php
/*
* Google weather service class
* @author Chris J. Lee
*/
class ServiceContainer {
protected $_baseurl;
protected $result;
abstract function __construct() {}
abstract function getRequest() {}
abstract function displayRequest() {}
}
class GoogleService implements ServiceContainer {
function __construct() {
$_baseurl = 'http://google.com/ig/api?weather=';
}
}
// $xml = simplexml_load_string(file_get_contents());
// var_dump($xml);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment