Created
August 9, 2012 20:50
-
-
Save chrisl8888/3307936 to your computer and use it in GitHub Desktop.
php script to consume google weather api webservice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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