Install-Package TouchTunesCSharpSDK
var ttApi = new TouchTunesApi(/*Your TouchTunes Api Key*/);
var deviceId = 8675309;
var response = ttApi.NowPlaying(deviceId);
if(response.Success) {
// do something with response.Data (string of JSON)
}
var keyword = "Mad Season";
var response = ttApi.KeywordSearch(keyword);
if(response.Success) {
// do something with response.Data (string of JSON)
}
var songId = "8675309";
var response = ttApi.SongIdSearch(songId);
if(response.Success) {
// do something with response.Data (string of JSON)
}
var latitude = "40.942438";
var longitude = "-72.990088";
var limit = 10; // optional, defaults to 20
var response = ttApi.Locate(longitude, latitude, limit);
if(response.Success) {
// do something with response.Data (string of JSON)
}