· 7 years ago · Feb 09, 2018, 10:30 PM
1$param = array(
2 'oauth_token' => 'xxxx',
3 'oauth_token_secret' => 'xxxx'
4);
5$twitter = new Twitter($param);
6$twitter = $twitter->getConnection();
7
8if (!class_exists('OAuthException')) {
9 class OAuthException extends Exception {
10 // pass
11 }
12}