PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of K.S.Richard  >  TubeMix API  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: TubeMix API
Get a mix of random YouTube videos using Tube-mix
Author: By
Last change:
Date: 8 years ago
Size: 379 bytes
 

Contents

Class file image Download
<?php
require_once("TubeMixAPI.php");
$api=new TubeMixAPI();
$api->tags="skrillex,rihanna"; // get songs from skrillex and rihanna randomly
$api->withbg=true; // want background for the actual song
$api->apikey="APIKEY"; // define apikey! IMPORTANT! if you haven't got api key go to: http://tube-mix.com/api_fb_app/ and follow the instructions!
$q=$api->query();
print_r($q);
?>

For more information send a message to info at phpclasses dot org.