-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTwitAuth_sample.pm
More file actions
executable file
·38 lines (27 loc) · 862 Bytes
/
Copy pathTwitAuth_sample.pm
File metadata and controls
executable file
·38 lines (27 loc) · 862 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
33
34
35
36
37
38
#Copyright (C) 2015 Kivanc Yazan
#See LICENSE file for more details about GNU General Public License.
package TwitAuth;
require Exporter;
use strict;
our @ISA = qw(Exporter);
our @EXPORT = qw(getTwitAuth);
my %TwitAuth = (
#username for database connection
db_user =>"",
#password for database connection
db_pass =>"",
#host for database connection, if you're working on local keep localhost
db_host =>"localhost",
#database name. not the table name, but the name for db that has the table you want to work on
#if you used setup.sql to create the table, leave it as it is
db_name =>"TwitterVotes",
#these are related to your twitter application. go to apps.twitter.com to learn more
consumer_key =>"",
consumer_secret =>"",
token => "",
token_secret => "",
);
sub getTwitAuth {
return %TwitAuth;
}
1;