Created
August 31, 2018 22:05
-
-
Save ile/e094c9470e7f13cf43247bd8ad58b8ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$opts = array( | |
'http'=>array( | |
'method'=> "GET", | |
'header'=> "x-api-key:your-key" | |
) | |
); | |
$context = stream_context_create($opts); | |
// Open the file using the HTTP headers set above | |
$file = file_get_contents('https://api.embed.rocks/api/?url=https://yle.fi/uutiset/3-9870906', false, $context); | |
print $file; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment