/** * Constructor * * @param string $oauth_token the user's token * @param string $oauth_token_secret the user's token secret * * @return nothing */ function __construct($oauth_token = null, $oauth_token_secret = null) { $consumer_key = common_config('twitter', 'consumer_key'); $consumer_secret = common_config('twitter', 'consumer_secret'); if (empty($consumer_key) && empty($consumer_secret)) { $consumer_key = common_config('twitter', 'global_consumer_key'); $consumer_secret = common_config('twitter', 'global_consumer_secret'); } parent::__construct($consumer_key, $consumer_secret, $oauth_token, $oauth_token_secret); }
function __construct($server, $consumerKey, $secret) { parent::__construct($consumerKey, $secret); $this->server = $server; }