Mondomix Developer

Agenda Mondomix

JavaScript SDK

You just need to integrate the following script on your web site.
<script src="http://ws.mondomix.com/agenda/js/MX_API_agenda.js"></script>
Set your filters, define a callback function and show the response on your web page.

<script language="javascript">
window.onload = function(){
	MXAgenda.init({
		key            : "ABCDFEJK1234536", // Your API_KEY
		callback       : "callBack",        // Your CALLBACK function
		filters        : {
		                  "_Name":"",
		                  "_Date":"",       // yyyy-mm-dd
		                  "_Price":"",
		                  "_Ville":"",
		                  "_Salle":"",
		                  "_CodePostal":"",
		                  "_Theme":"",     // *see the complete theme list
		                  "_Page":"",      // default : 1
		                  "_Limit":"12",   // default : 100 (max 100 par page)
		                  "OrderField":"", // default : _Date
		                  "Order":""       // default : ASC
					},
		formatpaginator: 'full'           //define the pagination style (full = with number page or small for only  arrows)
	});

}



function callBack(response){	
	var html = MXAgenda.show(response,'large'); //second arg is an option can be (small / medium /large) 
	 document.getElementById("Agenda").innerHTML=html;
	 
	 
	 // if you want to use pagination call this method
	 var pagination = MXAgenda.pagination(response); // pagination 	
	 document.getElementById("AgendaPages").innerHTML=pagination; //pagination output
	 
	 //if you need a search engine on your page add theses lines
	 var search = MXAgenda.search();
	document.getElementById("AgendaSearch").innerHTML = search;	
}
</script>
Don't forget to add a layer for response on your page (in this exemple a div with ID = 'agenda'), a layer for pagination and if you need a layer for search engine.
<div id="AgendaSearch" ></div> <!-- search engine -->
<div id="AgendaPages" class="pages"></div> <!-- pagination -->
<div id="Agenda"></div> <!-- events -->


*Theme list:

1MC = Musique/Concerts,
2TH = Théâtre/Humour,
3DA = Danse, 
4SP = Sports,
5FA = Spectacles,
6AR = Arts/musées,
7TL = Tourisme/Loisirs,
8CI = Cinéma

Download a demo

REST

http://ws.mondomix.com/agenda/REST/?method=get&output=OUTPUT_FORMAT&key=YOUR_API_KEY&filter_args ...
Possible output format : JSON or XML

Exemple, show next 10 sports events on Paris:
http://ws.mondomix.com/agenda/REST/?method=get&output=xml&key=YOUR_API_KEY&filter[_Ville]=Paris&filter[_Theme]=4SP&filter[_Page]=1&filter[_Limit]=10