Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function handle() |
||
39 | { |
||
40 | $action = $this->argument('action'); |
||
41 | $client_id = config('laravel-cafebazaar.client_id'); |
||
42 | $redirect_uri = config('laravel-cafebazaar.redirect_uri'); |
||
43 | switch($action) { |
||
44 | case 'code': |
||
45 | echo "Visit this and grant access\n"; |
||
46 | echo "https://pardakht.cafebazaar.ir/devapi/v2/auth/authorize/?response_type=code&access_type=offline&redirect_uri=$redirect_uri&client_id=$client_id\n"; |
||
47 | break; |
||
48 | } |
||
49 | } |
||
50 | } |