{"size": 953, "ext": "js", "max_stars_repo_path": "public/Youtube/youtube.js", "max_stars_repo_name": "svinayaka/svselfproject", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/Youtube/youtube.js", "max_issues_repo_name": "svinayaka/svselfproject", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/Youtube/youtube.js", "max_forks_repo_name": "svinayaka/svselfproject", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.8787878788, "max_line_length": 111, "alphanum_fraction": 0.5487932844}
(function () {
    var searchUsr = {
        part: '', //snippet
        q: '',
        type: '', // channel, playlist, video
        relevanceLanguage:'',
        videoDefinition:'', // any, standard, high
        maxResults: 5,
        order: '', //date, raing, relevance, title, videoCount, viewCount
    }
    var userInput = document.getElementById('youtube-searchInput');
    var userSearch = document.getElementById('youtube-searchBtn');

    userSearch.addEventListener('click', (evet) => {
        youtubeSearch();
    });

    function youtubeSearch() {
        fetch(BASEURL + '?' + 'part=snippet&q=test&key=AIzaSyAIq4ZiW6OB7G6U4_hxUYAPFQNL3NVs7nU&maxResults=20',{
            mode: "no-cors",
            method: 'GET',
            'Access-Control-Allow-Origin': '*',
            "Access-Control-Allow-Credentials" : true 
        })
        .then((resp) => resp.json())
        .then(resp => {
            debugger;
        })
    }

}())

