We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f3c985 + 5730b84 commit aadfc68Copy full SHA for aadfc68
src/Providers/OEmbed/TIkTok.php
@@ -0,0 +1,26 @@
1
+<?php
2
+
3
+namespace Embed\Providers\OEmbed;
4
5
+use Embed\Http\Url;
6
7
+class TikTok extends EndPoint implements EndPointInterface
8
+{
9
+ protected static $pattern = [
10
+ '*.tiktok.com/*'
11
+ ];
12
13
+ protected static $endPoint = 'https://www.tiktok.com/oembed';
14
15
+ /**
16
+ * {@inheritdoc}
17
+ */
18
+ public function getEndPoint()
19
+ {
20
+ return Url::create(static::$endPoint)
21
+ ->withQueryParameters([
22
+ 'url' => (string) $this->response->getStartingUrl(),
23
+ 'format' => 'json',
24
+ ]);
25
+ }
26
+}
0 commit comments