Skip to content

Commit 495ab82

Browse files
author
Andrea Zanelli
committed
Removed unnecessary oauth tokens
1 parent 45ee8b3 commit 495ab82

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

php-twitter-text-formatter/example.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@
1919

2020
// Set here your twitter application tokens
2121
$settings = array(
22-
'oauth_access_token' => "OAUTH_ACCESS_TOKEN",
23-
'oauth_access_token_secret' => "OAUTH_ACCESS_TOKEN_SECRET",
24-
'consumer_key' => "CONSUMER_KEY",
25-
'consumer_secret' => "CONSUMER_SECRET"
22+
'consumer_key' => 'CONSUMER_KEY',
23+
'consumer_secret' => 'CONSUMER_SECRET',
24+
25+
// These two can be left empty since we'll only read from the Twitter's
26+
// timeline
27+
'oauth_access_token' => '',
28+
'oauth_access_token_secret' => '',
2629
);
2730

28-
// Set here the Twitter username where to getting latest tweets
31+
// Set here the Twitter account from where getting latest tweets
2932
$screen_name = 'netglooweb';
3033

3134
// Get timeline using TwitterAPIExchange

0 commit comments

Comments
 (0)