Example #1
0
 public function __construct($args)
 {
     $defaults = array('api-url' => 'https://api.twitter.com/');
     $args = wp_parse_args($args, $defaults);
     $this->_consumer_key = $args['consumer-key'];
     $this->_consumer_secret = $args['consumer-secret'];
     self::$_api_url = $args['api-url'];
     if (!empty($args['token'])) {
         $this->_token = $args['token'];
     }
 }