-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_SAMPLE.php
More file actions
33 lines (25 loc) · 949 Bytes
/
Copy pathconfig_SAMPLE.php
File metadata and controls
33 lines (25 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// CONNECT TO MYSQL SERVER ------------------------------------------------------------------------
$servername = "SERVER";
$username = "USERNAME";
$password = "PASS";
$dbname = "AppTutDB";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Test connection
test_conn($conn);
// CONNECT to TWITTER -----------------------------------------------------------------------------
// Set access tokens here - see: https://dev.twitter.com/apps/
$settings = array(
'oauth_access_token' => "TOKEN",
'oauth_access_token_secret' => "SECRET",
'consumer_key' => "KEY",
'consumer_secret' => "SECRET"
);
$twitter = new TwitterAPIExchange($settings);
$requestMethod = 'GET';
// Set initial user
$seed = "TWITTERUSERNAME";
// Set network depth to define hubs
// In order to followup on someone, what fraction of population needs to follow them
$depth = .50; // Default is 50%