From 7834d935e2929edbb52df7401a4cd4be4861fb96 Mon Sep 17 00:00:00 2001 From: Micke Prag Date: Thu, 2 Feb 2012 15:58:55 +0100 Subject: [PATCH] Fixed wrong endpoint in our php example --- examples/php/live/authentication/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/php/live/authentication/common.php b/examples/php/live/authentication/common.php index 05873f77..3256b9b7 100644 --- a/examples/php/live/authentication/common.php +++ b/examples/php/live/authentication/common.php @@ -7,7 +7,7 @@ require_once 'HTTP/OAuth/Consumer.php'; define('PUBLIC_KEY', ''); define('PRIVATE_KEY', ''); -define('URL', 'http://api.telldus.net'); +define('URL', 'http://api.telldus.com'); //https should be used in production! define('REQUEST_TOKEN', constant('URL').'/oauth/requestToken'); define('AUTHORIZE_TOKEN', constant('URL').'/oauth/authorize'); define('ACCESS_TOKEN', constant('URL').'/oauth/accessToken'); @@ -16,4 +16,4 @@ define('REQUEST_URI', constant('URL').'/xml'); define('BASE_URL', 'http://'.$_SERVER["SERVER_NAME"].dirname($_SERVER['REQUEST_URI'])); define('TELLSTICK_TURNON', 1); -define('TELLSTICK_TURNOFF', 2); \ No newline at end of file +define('TELLSTICK_TURNOFF', 2);