Make an ajax request to google calendar api
<p>I'm trying to make an ajax request to google calendar API, but something goes wrong. 
Here I have very simple code, but I don't understand why it is not working. </p>

<pre><code>var mykey = 'my server key'; // I am using here server key(which I created in credentials in console.developers.google.com) Maybe I am using wrong version?! I've tried browser key, but it didn't help me.

var calendarid = 'my client_id'; // here I am using VALID clientId, which I created in my project in developer console. Below this code I attached screen.

$.ajax({
    type: 'GET',
    url: encodeURI('https://www.googleapis.com/calendar/v3/calendars/' + calendarid+ '/events?key=' + mykey),
    dataType: 'json',
    success: function (response) {
        //console.log('Nice!')
    },
    error: function (response) {
        //console.log('Bad!')
    }
});
</code></pre>

<p>I always have error 404 (OK) in browser console. Any help will be appreciated! </p>

<p><a href="http://take.ms/aNpNg" rel="nofollow">Here is screenshot</a> for my ClientID.</p>