app/Services/Musixmatch.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
* @param string $key The Musixmatch API key |
| 16 |
|
* @param Client|null $client The Guzzle HTTP client |
| 17 |
|
*/ |
| 18 |
|
public function __construct($key = null, Client $client = null) |
| 19 |
|
{ |
| 20 |
|
parent::__construct( |
| 21 |
|
$key ?: config('koel.musixmatch.key'), |
| 22 |
|
null, |
| 23 |
|
'https://api.musixmatch.com/ws/1.1', |
| 24 |
|
$client ?: new Client() |
| 25 |
|
); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
/** |
| 29 |
|
* Determine if our application is using Musixmatch. |
app/Services/YouTube.php 1 location
|
@@ 16-24 (lines=9) @@
|
| 13 |
|
* @param string $key The YouTube API key |
| 14 |
|
* @param Client|null $client The Guzzle HTTP client |
| 15 |
|
*/ |
| 16 |
|
public function __construct($key = null, Client $client = null) |
| 17 |
|
{ |
| 18 |
|
parent::__construct( |
| 19 |
|
$key ?: config('koel.youtube.key'), |
| 20 |
|
null, |
| 21 |
|
'https://www.googleapis.com/youtube/v3', |
| 22 |
|
$client ?: new Client() |
| 23 |
|
); |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
/** |
| 27 |
|
* Determine if our application is using YouTube. |