API의 V2가 1 년 이내에 사용되지 않을 것임을 알았을 때 자바 캘린더에서 Google 캘린더의 일정을 잡기위한 툴을 사용하고있었습니다. 분명히 내 하루를 망칠 ^^.Google 캘린더 API v2에서 V3 - 자바 스크립트
이 새로운 API에 익숙해 지려고하지만 아직 찾을 수없는 것이 있습니다. google 캘린더 API v3의 자바 스크립트 클라이언트에서 'futureevents = true'매개 변수와 동일한 작업을 수행하는 방법은 무엇입니까? 여기
<script type="text/javascript">
var apiKey = 'apikey';
var scopes = 'https://www.googleapis.com/auth/calendar';
function handleClientLoad() {
gapi.client.setApiKey(apiKey);
makeApiCall();
}
function makeApiCall() {
gapi.client.load('calendar', 'v3', function() {
var request = gapi.client.calendar.events.list({
'calendarId': '[email protected]'
});
request.execute(function(resp) {
console.log(resp);
for (var i = 0; i < resp.items.length; i++) {
var title = document.createTextNode(resp.items[i].summary);
var description = document.createTextNode(resp.items[i].description + ' ');
var location = document.createTextNode(resp.items[i].location + ' ');
var date = document.createTextNode('Start: ' + resp.items[i].start.date + ' End: ' + resp.items[i].end.date);
var div = document.createElement('div');
var h1 = document.createElement('h1');
h1.appendChild(title);
div.appendChild(location);
div.appendChild(description);
div.appendChild(h1);
var p = document.createElement('p');
p.appendChild(date);
div.appendChild(p);
document.body.appendChild(h1);
document.body.appendChild(div);
}
});
}
</script>
<script src="https://apis.google.com/js/client.js?onload=handleClientLoad"></script>
내 코드이며,이에, 나는 내가 아직 무슨 일이 생긴하지 않았다 단지 하나를 얻을 수있는 방법 달력의 모든 이벤트를 얻을. 사전에 의해
덕분에