Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | protected function execute(InputInterface $input, OutputInterface $output) |
||
27 | { |
||
28 | $tweet_id = $input->getArgument('tweet_id'); |
||
29 | |||
30 | $connection = new TwitterOAuth( |
||
31 | $this->container->getParameter('twitter_consumer_key'), |
||
32 | $this->container->getParameter('twitter_consumer_secret'), |
||
33 | $this->container->getParameter('twitter_token'), |
||
34 | $this->container->getParameter('twitter_token_secret') |
||
35 | ); |
||
36 | |||
37 | $output->writeln( |
||
38 | json_encode($connection->get('statuses/show/'.$tweet_id)) |
||
39 | ); |
||
40 | } |
||
41 | } |
||
42 |