49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Grapper\Magloo;
|
|
|
|
use App\Console\Commands\Curl;
|
|
use App\Console\Commands\Nuh;
|
|
use App\Models\Sport;
|
|
use App\Utilities\Notice;
|
|
|
|
class Odds
|
|
{
|
|
public static function grap()
|
|
{
|
|
$debug = Nuh::$options['d'] ?? 0;
|
|
$test = Nuh::$options['t'] ?? 0;
|
|
$echo = Nuh::$options['e'] ?? 0;
|
|
|
|
switch (Nuh::$options['provider_id']) {
|
|
case 3:
|
|
// KENIA
|
|
if ($test) {
|
|
$base_url = 'https://int.external.api.algorez.com/api/sb/affiliates/30/en/1/prematch/sport';
|
|
} else {
|
|
$base_url = 'https://api.externalsvc.com/api/sb/affiliates/30/en/1/prematch/sport';
|
|
}
|
|
break;
|
|
case 4:
|
|
// NIGERIA
|
|
if ($test) {
|
|
$base_url = 'https://int.external.api.algorez.com/api/sb/affiliates/20/en/1/prematch/sport';
|
|
} else {
|
|
$base_url = 'https://api.externalsvc.com/api/sb/affiliates/20/en/1/prematch/sport';
|
|
}
|
|
break;
|
|
default:
|
|
Notice::note('prosses name does not exist', 'r', 1);
|
|
break;
|
|
|
|
}
|
|
|
|
$sportmap = Sport::map('magl');
|
|
|
|
$_data = Curl::load($url, 1);
|
|
|
|
dd($_data);
|
|
|
|
}
|
|
}
|