From 72fec4598af21f3facb65308def5b87127a47e69 Mon Sep 17 00:00:00 2001 From: thefosk Date: Thu, 11 Oct 2012 15:25:28 -0700 Subject: [PATCH] refacotr --- main/mashape/authentication/OAuth10aAuthentication.php | 4 ++-- main/mashape/authentication/OAuth2Authentication.php | 4 ++-- main/mashape/authentication/OAuthAuthentication.php | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main/mashape/authentication/OAuth10aAuthentication.php b/main/mashape/authentication/OAuth10aAuthentication.php index 8b37b78..374306e 100644 --- a/main/mashape/authentication/OAuth10aAuthentication.php +++ b/main/mashape/authentication/OAuth10aAuthentication.php @@ -3,8 +3,8 @@ require_once(dirname(__FILE__) . "/OAuthAuthentication.php"); class OAuth10aAuthentication extends OAuthAuthentication { - function __construct($consumerKey, $consumerSecret, $redirectUrl) { - parent::__construct($consumerKey, $consumerSecret, $redirectUrl); + function __construct($consumerKey, $consumerSecret, $callbackUrl) { + parent::__construct($consumerKey, $consumerSecret, $callbackUrl); } public function handleHeaders() { diff --git a/main/mashape/authentication/OAuth2Authentication.php b/main/mashape/authentication/OAuth2Authentication.php index 6a4c0a2..a0a4d85 100644 --- a/main/mashape/authentication/OAuth2Authentication.php +++ b/main/mashape/authentication/OAuth2Authentication.php @@ -3,8 +3,8 @@ require_once(dirname(__FILE__) . "/OAuthAuthentication.php"); class OAuth2Authentication extends OAuthAuthentication { - function __construct($consumerKey, $consumerSecret, $redirectUrl) { - parent::__construct($consumerKey, $consumerSecret, $redirectUrl); + function __construct($consumerKey, $consumerSecret, $callbackUrl) { + parent::__construct($consumerKey, $consumerSecret, $callbackUrl); } public function handleParams() { diff --git a/main/mashape/authentication/OAuthAuthentication.php b/main/mashape/authentication/OAuthAuthentication.php index e0a915a..e079142 100644 --- a/main/mashape/authentication/OAuthAuthentication.php +++ b/main/mashape/authentication/OAuthAuthentication.php @@ -5,14 +5,14 @@ class OAuthAuthentication implements Authentication { protected $consumerKey; protected $consumerSecret; - protected $redirectUrl; + protected $callbackUrl; protected $accessToken; protected $accessSecret; - function __construct($consumerKey, $consumerSecret, $redirectUrl) { + function __construct($consumerKey, $consumerSecret, $callbackUrl) { $this->consumerKey = $consumerKey; $this->consumerSecret = $consumerSecret; - $this->redirectUrl = $redirectUrl; + $this->callbackUrl = $callbackUrl; } public function addAccessToken($accessToken, $accessSecret = null) { @@ -24,7 +24,7 @@ class OAuthAuthentication implements Authentication { $params = array( "consumerKey" => $this->consumerKey, "consumerSecret" => $this->consumerSecret, - "redirectUrl" => $this->redirectUrl, + "callbackUrl" => $this->callbackUrl, ); return $params; }