Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function img($a) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://api.imageresizer.io/images?url=http://ytimg.googleusercontent.com/vi/'.$a.'/default.jpg');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
- $data = curl_exec($ch);
- curl_close($ch);
- $c=json_decode($data,1);
- return 'https://im.ages.io/'.$c['response']['id'].'?height=80';
- }
- echo img('IOC-GLs9TEw');
- ?>
- vafaficogo@vpsorg.pro
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement