Skip to content

Commit b1dd475

Browse files
authored
Create Instagram.php
1 parent 3978fb9 commit b1dd475

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Adapters/Instagram.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

0 commit comments

Comments
 (0)