angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 728 forks source link

Import Google Calendars or Events #396

Open diegoballest opened 8 years ago

diegoballest commented 8 years ago

I was using fullcalendar before and decided to use uicalendar but i dont find the way to show my google calendar in this one. please help. thanks.

DvirH commented 8 years ago

I can't see nothing about google in fullcalendar.js

diegoballest commented 8 years ago

http://fullcalendar.io/docs/google_calendar/

DvirH commented 8 years ago

I mean I tried it but it doesn't work because the author didn't implement this.

DvirH commented 8 years ago

It works now. Use this file for gcal.js

and use in this code in your controller vm.eventSources = [ {
googleCalendarId: 'your calendar' }
]

vm.uiConfig = { calendar: { googleCalendarApiKey: 'Your api key', } };

danielbattat commented 7 years ago

Hi @DvirH Were you able to get the google to work? I get an error: https://jsfiddle.net/4os6z5gh/ Thanks, Dan

bonatoc commented 6 years ago

Worked for me downgrading to JQuery v2.2.2

Otherwise you'll get an ajax error if using a jquery.slim version.

DvirH commented 6 years ago

@dab1211 I did. A year ago. Didn't try the current version. Did you solve it?

rodrigokiller commented 6 years ago

Tried today. AngularJS v1.5, jquery v3.3.1, momentJS, fullcalendar v3.9.0, gcal.js v3.9.0, ui-calendar (last download as today) and it worked with your configs.

northkode commented 6 years ago

seems calendar API now no longer accepts api keys. documents say to use oauth. is anyone else finding this?