<?php
$imdb_id = "tt4116284";
$api_key = "xxxxxxxxxxx";
$mws_imdb = file_get_contents("http://miladworkshop.ir/api/trailer/?apikey={$api_key}&i={$imdb_id}");
$mws_imdb = json_decode($mws_imdb, true);
echo "<br />IMDB ID : ". $mws_imdb["id"];
echo "<br />Youtube ID : ". $mws_imdb["youtube_id"];
echo "<br />Trailer Linl : ". $mws_imdb["trailer_link"];
?>
در کد بالا 3 تابع دریافت میشه از imdb و پاسخ به این شکله :
{"Response":true,"id":"tt4116284","video_sd":"https:\/\/video-http.media-imdb.com\/MV5BZTJlMmVjNmItZjk2NS00OTI0LWJmMTUtNzljMzE3ZTA0NjgxXkExMV5BbXA0XkFpbWRiLWV0cy10cmFuc2NvZGU@.mp4?Expires=1528738056&Signature=jBeJ5EVQLSTCBnrg6OgomGcUNQ~LGCVPHI81WLTqQTHZxXQcSEOOj38B-xQjOe9-oOutzSpb3f9NqkKXaQjo6zRpEOvRJm6VODZND7hgSSxStJxL0rP8QcgRJnPZ7TXOyUCwCZ33W-qtkrQUA3OHIwEc6bC9nSewqZhzNmKnhaA_&Key-Pair-Id=APKAILW5I44IHKUN2DYA","video_240":"","video_360":"","video_480":"https:\/\/video-http.media-imdb.com\/MV5BY2UwNjdjNmEtMjIzNy00MTBhLWFhODctYjY3NjY0N2Q5NTBhXkExMV5BbXA0XkFpbWRiLWV0cy10cmFuc2NvZGU@.mp4?Expires=1528738056&Signature=G4SLuc2BXUgj~~TjmD~vq46BCbVHWYYKsP58WyYA8xkXD59BodDSrOnXYxJxikfdnw~zWdG-pyH5Nl0V0b63IyWRzfkQ5fdVo6w5INFSoQoqXzckZhVFlbpJgvMUm-eUMmIy-2MxRIMTsFLJi3T6-Q1L6YDkH66fJ6qtrbG8bE4_&Key-Pair-Id=APKAILW5I44IHKUN2DYA","video_720":"https:\/\/video-http.media-imdb.com\/MV5BMDY4ZmUzZWEtZDhlMS00MTA1LTkyYTgtNzE2YjM4ZjVmMTExXkExMV5BbXA0XkFpbWRiLWV0cy10cmFuc2NvZGU@.mp4?Expires=1528738056&Signature=JNGrQhE5dC7ACwqVoJkAf9IWlfCMAyHk9c9F6ObAT9Q1GACov8Wf-ke92dmPTy7cojLuNazSUDFpJDYW88FN3Hj61ENVH9AmL-FVV~WZn7zFe5h48r76NtLD2cNo-QnrM9LHM4YYwtUuekDCHGAHXTErDMP6myDz35wEGBn8ZHI_&Key-Pair-Id=APKAILW5I44IHKUN2DYA","video_1080":"","video_image":"https:\/\/images-na.ssl-images-amazon.com\/images\/M\/MV5BMTY0NTAyMDA5NV5BMl5BanBnXkFtZTgwODM2NzM4MDI@._V1_.jpg","video_name":"Extended TV Spot from The Lego Batman Movie (2017)","video_description":"There are big changes brewing in Gotham, and if Batman wants to save the city from the Joker's hostile takeover, he may have to drop the lone vigilante thing, try to work with others, and maybe learn to lighten up."}
حالا من میخوام پس از دریافت فقط " لینک دانلود تریلر" اون رو داخل هستم آپلود کنه و لینکش رو هم بده
به abol.sub کمک کنید تا مشکل خودش را حل کند؛ اینطور میتوانیم با هم پیشرفت کنیم.
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟