Fixed wrong endpoint in our php example
This commit is contained in:
parent
f15fd887e8
commit
7834d935e2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
define('TELLSTICK_TURNOFF', 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue