We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 025a7f1 commit 3ea1d10Copy full SHA for 3ea1d10
src/OEmbed.php
@@ -7,6 +7,9 @@
7
8
class OEmbed{
9
10
+ public const TYPE_JSON = 'application/json+oembed';
11
+ public const TYPE_XML = 'text/xml+oembed';
12
+
13
public static function decode(string $data,string $format='xml'): ?array{
14
if($format==='json'){
15
return self::decodeJSON($data);
0 commit comments