twilio-time-and-temperature/time-temp.inc.php.dist
2018-01-16 20:12:00 -08:00

20 lines
541 B
Plaintext

<?php
// This is a sample config file. Copy to time-temp.inc.php
// and modify the UPPERCASE bits.
$wunderkey = "YOUR_WEATHERUNDERGROUND_API_KEY";
$url = "http://api.wunderground.com/api/";
$feature = "/conditions";
// TODO: replace the 1212 number(s) with YOUR Twilio number(s)
// and the appropriate cities/states for each $path .
if ($_POST['To'] == "+19995551212") {
$path = "/q/CA/San_Francisco.json";
} elseif ($_POST['To'] == "+19997771212") {
$path = "/q/HI/Honolulu.json";
} else {
$path = "/q/NY/New_York.json";
}