예제 #1
0
 public function __construct($config = array())
 {
     $this->config = array_merge(array('consumer_key' => 'ptOjSuaCXjI4zmBMrRzdkKmzH', 'consumer_secret' => '99ytYeHhCfZaxIp1Ca0rdlfe8h1GB11lPwuYihLClsFAOOthXw', 'token' => '3247662382-HKQGaMo9cCds5erYUi5JJIvaGHRfWZEtLO5v4qE', 'secret' => 'hwsmEXRzwLAGz40xMtX5XK7FCZul1CRIOGLiVpu9jHVps', 'bearer' => '3247662382-HKQGaMo9cCds5erYUi5JJIvaGHRfWZEtLO5v4qE', 'user_agent' => 'tmhOAuth ' . parent::VERSION . ' Examples 0.1'), $config);
     if (file_exists(__DIR__ . DIRECTORY_SEPARATOR . 'tmh_myconfig.php')) {
         include __DIR__ . DIRECTORY_SEPARATOR . 'tmh_myconfig.php';
         $this->config = array_merge($this->config, tmh_myconfig());
     }
     parent::__construct($this->config);
 }
예제 #2
0
 public function __construct($config = array())
 {
     $this->config = array_merge(array('consumer_key' => 'AHbD6KOwFcUp57JJ8ofTw', 'consumer_secret' => 'lxwPpSvedHIEQpevtPChGPuZk4awsVWECx5wUwE3R4', 'token' => 'A_USER_TOKEN', 'secret' => 'A_USER_SECRET', 'bearer' => 'YOUR_OAUTH2_TOKEN', 'user_agent' => 'tmhOAuth ' . parent::VERSION . ' Examples 0.1'), $config);
     if (file_exists(__DIR__ . DIRECTORY_SEPARATOR . 'tmh_myconfig.php')) {
         include __DIR__ . DIRECTORY_SEPARATOR . 'tmh_myconfig.php';
         $this->config = array_merge($this->config, tmh_myconfig());
     }
     parent::__construct($this->config);
 }
 public function __construct($config = array())
 {
     $this->config = array_merge(array('consumer_key' => 'YOUR_CONSUMER_KEY', 'consumer_secret' => 'YOUR_CONSUMER_SECRET', 'token' => 'A_USER_TOKEN', 'secret' => 'A_USER_SECRET', 'bearer' => 'YOUR_OAUTH2_TOKEN', 'user_agent' => 'tmhOAuth ' . parent::VERSION . ' Examples 0.1'), $config);
     if (file_exists(__DIR__ . DIRECTORY_SEPARATOR . 'tmh_myconfig.php')) {
         include __DIR__ . DIRECTORY_SEPARATOR . 'tmh_myconfig.php';
         $this->config = array_merge($this->config, tmh_myconfig());
     }
     parent::__construct($this->config);
 }
예제 #4
0
 public function __construct($config = array())
 {
     global $twitter_oauth;
     //dan edit
     $this->config = array_merge(array('consumer_key' => $twitter_oauth["consumer_key"], 'consumer_secret' => $twitter_oauth["consumer_secret"], 'token' => $twitter_oauth["token"], 'secret' => $twitter_oauth["secret"], 'bearer' => 'XXXXXXXXXXXX', 'user_agent' => 'tmhOAuth ' . parent::VERSION . ' Examples 0.1'), $config);
     if (file_exists(__DIR__ . DIRECTORY_SEPARATOR . 'tmh_myconfig.php')) {
         include __DIR__ . DIRECTORY_SEPARATOR . 'tmh_myconfig.php';
         $this->config = array_merge($this->config, tmh_myconfig());
     }
     parent::__construct($this->config);
 }