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 3978fb9 + 6d85de5 commit 01c284dCopy full SHA for 01c284d
src/Adapters/Instagram.php
@@ -0,0 +1,20 @@
1
+<?php
2
+
3
+namespace Embed\Adapters;
4
5
+use Embed\Http\Response;
6
7
+/**
8
+ * Adapter to provide information from Instagram.
9
+ * Required when Instagram returns a 429 status code.
10
+ */
11
+class Instagram extends Webpage
12
+{
13
+ /**
14
+ * {@inheritdoc}
15
16
+ public static function check(Response $response)
17
+ {
18
+ return $response->isValid([200, 429]);
19
+ }
20
+}
src/Http/Redirects.php
@@ -14,7 +14,7 @@ abstract class Redirects
'spotify' => 'play.spotify.com/*',
'tumblr' => 't.umblr.com/redirect',
];
-
/**
* Resolve the url redirection.
*
0 commit comments