showScreen(displayId)
    {
        let url = 'http://52.172.36.138/display/requestscreenshot/'+displayId
        fetch(url,{
            method: 'PUT',
            headers: {
                Accept: 'application/json',
                'Content-Type': 'application/json',
                'Authorization':'Bearer '+access_token,
            },
            body:JSON.stringify({
                'displayId' : displayId,
            }),
        }).then((response) => response.json()).then((jsonResponseScreen) => {
            console.log(jsonResponseScreen);
        })
            .catch((error) => {
                console.error(error);
            });
    }
/************   Start Function for request screenshot not working properly ***********************/
Start Function for request screenshot not working properly
Start Function for request screenshot not working properly
showScreen(displayId)
    {
        let url = 'http://52.172.36.138/display/requestscreenshot/'+displayId
        fetch(url,{
            method: 'PUT',
            headers: {
                Accept: 'application/json',
                'Content-Type': 'application/json',
                'Authorization':'Bearer '+access_token,
            },
            body:JSON.stringify({
                'displayId' : displayId,
            }),
        }).then((response) => response.json()).then((jsonResponseScreen) => {
            console.log(jsonResponseScreen);
        })
            .catch((error) => {
                console.error(error);
            });
    }
showScreen ( displayId ) { let url = 'http://52.172.36.138/display/requestscreenshot/' + displayId fetch ( url , { method : 'PUT' , headers : { Accept : 'application/json' , 'Content-Type' : 'application/json' , 'Authorization' : 'Bearer ' + access_token , } , body : JSON . stringify ( { 'displayId' : displayId , } ) , } ) . then ( ( response ) => response . json ( ) ) . then ( ( jsonResponseScreen ) => { console . log ( jsonResponseScreen ) ; } ) . catch ( ( error ) => { console . error ( error ) ; } ) ; }
Start Function for request screenshot not working properly
Start Function for request screenshot not working properly