The Musicshake API has been discontinued. API calls, new developer keys and the demo widgets are no longer available. This documentation is kept for reference.

tempos

Get the list of all available tempos; the tempo values represent Beats Per Minute.

Parameters

  • api_key - developer key
  • callback (optional) - callback function name for a JSONP request

Request Example

https://developers.musicshake.com/api/tempos?api_key=YOUR_API_KEY

Response Example

["90","110","120","140"]

ActionScript Example

import com.adobe.serialization.json.JSON;
import flash.net.URLLoader;
import flash.events.Event;
import flash.events.IOErrorEvent;

private function loadCategories():void
{
	var requestURL:String = "https://developers.musicshake.com/api/tempos?api_key=YOUR_API_KEY";
	
	var ul:URLLoader = new URLLoader();
	ul.addEventListener(IOErrorEvent.IO_ERROR, onURLLoaderError);
	ul.addEventListener(Event.COMPLETE, onURLLoaderComplete);
	
	try {
		ul.load(new URLRequest(requestURL));
	} catch (error:SecurityError) {
	}
}

private function onURLLoaderError(error:Error):void
{
}

private function onURLLoaderComplete(event:Event):void
{
	var o:Object = JSON.decode(event.target.data);
	
	for each (var tempo:Object in o.tempos) {
		trace(tempo);
	}
}