function __construct($api_key, $api_secret) { $this->api_key = $api_key; $this->api_secret = $api_secret; $this->auth_mode = 'api'; parent::__construct(); }
function __construct($api_client_id, $api_client_secret, $redirect_uri, $access_token = null) { $this->api_client_id = $api_client_id; $this->api_client_secret = $api_client_secret; $this->oauth_redirect_uri = $redirect_uri; $this->SetAccessToken($access_token); $this->auth_mode = 'oauth'; parent::__construct(); }