This commit is contained in:
thefosk
2012-10-11 15:25:28 -07:00
parent 24d86fbedf
commit 72fec4598a
3 changed files with 8 additions and 8 deletions

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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;
}