tvmaze.js
function showSearch( id, embed, callback ) {
    var embd = '';
    for ( var key in embed ) {
        if (  embed.hasOwnProperty(key) ) {
            embd += ( 0 == key ? '?' : '&' ) + 'embed[]=' + embed[key];
        }
    }

    var url = apiBaseUrl+endpoints['show'] + id + embd;

    fetch(url, function(result) {
        callback(result);
    });
}
function showSearch( id, embed, callback ) {
    var embd = '';
    for ( var key in embed ) {
        if (  embed.hasOwnProperty(key) ) {
            embd += ( 0 == key ? '?' : '&' ) + 'embed[]=' + embed[key];
        }
    }

    var url = apiBaseUrl+endpoints['show'] + id + embd;

    fetch(url, function(result) {
        callback(result);
    });
}
function showSearch ( id , embed , callback ) { var embd = '' ; for ( var key in embed ) { if ( embed . hasOwnProperty ( key ) ) { embd += ( 0 == key ? '?' : '&' ) + 'embed[]=' + embed [ key ] ; } } var url = apiBaseUrl + endpoints [ 'show' ] + id + embd ; fetch ( url , function ( result ) { callback ( result ) ; } ) ; }
Get show infos by id

@param id
@param embed
@param callback
Get show infos by id