Mp3 APis

Untuk cara membuat traffic dan dapat mudah digunakan oleh para blogger atau situs lain, diperlukan sedikit API (application programming interface)


function getLinkMp3(wdh,s){
		$(window).scrollTop(0);
		$("#muter").html("Loading...");
			$.getJSON('your-site/download/mp3/'+s+'/json', function(data) {
        cts = ""; 
        $.each(data, function(index) {
			  cts=cts+ "<li><a href='"+data[index].url+"'>Download "+data[index].title+"</a></li>"	
        });
			if (data.length>0)
				$("#"+wdh).html("<h1>Download Free Mp3 of "+s.replace('_'," ")+"</h1><ul>"+cts+"</ul>");			
			else
				$("#"+wdh).html("<h1>No mp3 found.</h1>");			
			$("#muter").html("");

    });


$("#videomp3").html("Loading...");
 $.getJSON('http://your-site/'+s.replace(' ',"+"), function(data) {
        cts = ""; 
        $.each(data, function(index) {
     cts=cts+data[index]; 
        });
   if (data.length>0)
    $("#videomp3").html(cts);   
   else
    $("#videomp3").html("<h1>No video found.</h1>");   
  });
    }

0 comments:

Post a Comment

 

Copyright 2013 Download Lagu Gratis: Mp3 APis Template by Casino Critic | Ping!. Powered by Blogger