Browse Source

stub new twitter api stuff

master
Aaron Parecki 5 years ago
parent
commit
582c481d32
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 37 additions and 1 deletions
  1. +37
    -1
      routes/console.php

+ 37
- 1
routes/console.php View File

@ -13,6 +13,42 @@ use Illuminate\Foundation\Inspiring;
| |
*/ */
Artisan::command('inspire', function () {
Artisan::command('inspire', function() {
$this->comment(Inspiring::quote()); $this->comment(Inspiring::quote());
})->describe('Display an inspiring quote'); })->describe('Display an inspiring quote');
/*
Artisan::command('score', function(){
$tweet = App\Tweet::where(['id'=>27])->first();
$score = $tweet->mission->score($tweet->team);
event(new App\Events\ScoreUpdatedEvent($tweet->team,
$tweet->mission, $score, $tweet->mission->complete($tweet->team), $tweet->team->total_score()));
$this->comment("Score: $score");
});
*/
Artisan::command('get_tweet', function(){
$id = '883471631200296961';
$tweet = Twitter::getTweet($id);
$this->comment(json_encode($tweet));
});
Artisan::command('add_webhook', function(){
$response = Twitter::post('/account_activity/all/:env_name/webhooks.json', [
'url' => ''
]);
$response = Twitter::post('/account_activity/all/prod/subscriptions.json');
});

Loading…
Cancel
Save