A PHP client for the Galiboo API. Feedback or bug reports are appreciated.
Get your API key from Galiboo
If you're using Composer, you can run the following command:
composer require sleiman/galiboo-php
You can also download them directly and extract them to your web directory.
If you're using Composer, run the autoloader
require 'vendor/autoload.php';
Or include all the files
include('../src/Galiboo.php');
include('../src/Request.php');
use TANIOS\Galiboo\Galiboo;
$galiboo = new Galiboo('API KEY');
Prepare a request
$request = $galiboo->getTrackMetadata("5a41aae78cc3d0d2d4259034");
$request = $galiboo->getArtistMetadata("5a43df43c3de0d10231633d3");
$request = $galiboo->searchArtists("Nicolas Jaar");
$request = $galiboo->searchTracks("Mi Mujer","Nicolas Jaar");
$request = $galiboo->searchTracksAI("good vibes");
$query = array(
"energy" => 0.25,
"smart_tags" => array(
"Emotion-Calming_/_Soothing" => 0.9
)
);
$request = $galiboo->findTracksByTags($query);
$request = $galiboo->findSimilarTracks("5a43df43c3de0d10231633d3");
$request = $galiboo->addNewUser($unique_id_from_your_database);
$request = $galiboo->addUserEvent($galibo_user_id,$timestamp,$type,$object);
$request = $galiboo->getUser($galibo_user_id);
$request = $galiboo->getUserEvents($galibo_user_id);
$request = $galiboo->getUserMusicRecommendations($galibo_user_id,$seed_track="",$seed_artist="",$context="",$limit="");
$request = $galiboo->analyzeFromUrl("URL");
$request = $galiboo->analyzeFromYoutube("https://www.youtube.com/watch?v=Bag1gUxuU0g");
$request = $galiboo->analyzeFromUrlBatch("URL");
$request = $galiboo->jobStatus($job_id);
$request = $galiboo->jobAllStatus();
Get the response
$response = $request->getResponse();
print_r($response);
Copyright (c) 2018 - Programmed by Sleiman Tanios