"; exit; } function getInpoh($link) { echo "# Getting info: "; $data = json_decode(hajar("https://api.soundcloud.com/resolve.json?client_id=" . client_id . "&url=" . $link), true); if (isset($data['errors'])) { echo "ERROR!\n" . $data['errors'][0]['error_message']; exit; } else { echo "OK!\n"; sleep(1); echo "Artis: " . $data['user']['username']; echo "\nTitle: " . $data['title']; echo "\nGenre: " . $data['genre'] . "\n\n"; // echo "\nLink : " . $data['permalink_url'] . "\n\n"; $dl = getDownload($data['uri']); } } function getDownload($link) { echo "# Getting download url: "; $data = json_decode(hajar($link . "/streams?client_id=" . client_id), true); if (isset($data['errors'])) { echo "ERROR!\n" . $data['errors'][0]['error_message']; } else { echo "OK!\n"; echo "Link : " . $data['http_mp3_128_url']; } }