Last active
June 13, 2024 15:45
-
-
Save sh-sh-dev/542724a6ac72dc04623ecffaa4989620 to your computer and use it in GitHub Desktop.
Digikala Products Info
This file contains 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 | |
function digikalaProduct($PID) { | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://api.digikala.com/v1/product/$PID/"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.81 Safari/537.36"); | |
$output = curl_exec($ch); | |
curl_close($ch); | |
return $output; | |
} |
من حاضرم یک پولی بدم. فقط گوشی هاشون (موجود) بر اساس وزن مرتب کنید
اگر به نتیجه نرسیدید، به این آیدی تلگرام پیام بدید
HosseinHosni
اگر پروژه دیگهای هم مد نظرتون هست در همین زمینه، قابل انجامه.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
سلام ممنون میشم راهنمایی کنید بخش دسته بندی های nav bar رو از کجا بگیرم هر چی میگردم کاملش نیست