8 my $config = (YAML::Tiny->read('config.yml'))->[0];
10 my $consumer_key = $config->{'consumer_key'};
11 my $consumer_key_secret = $config->{'consumer_secret'};
12 my $access_token = $config->{'access_token'};
13 my $access_token_secret = $config->{'access_token_secret'};
15 my $nt = Net::Twitter->new(
16 traits => ['API::REST', 'OAuth'],
17 consumer_key => $consumer_key,
18 consumer_secret => $consumer_key_secret,
20 $nt->access_token($access_token);
21 $nt->access_token_secret($access_token_secret);
23 my $res = $nt->update({ status => "Perl から Twiitter を更新するテストですよー" });