manybots-googlecalendar is a Manybots Observer that allows you to import your events your Google Calendar events into your local Manybots.
Events in the future will be imported as Predictions, and events that other people invite you too are Notifications (that contain predictions).
You need the latest version of Manybots Local running on your system. Open your Terminal and cd into its' directory.
First, require the gem: edit your Botfile, add the following, and run bundle install
gem 'manybots-googlecalendar', :git => 'git://github.com/manybots/manybots-googlecalendar.git'
gem 'google-api-client', :require => 'google/api_client'
Second, run the manybots-googlecalendar install generator (mind the underscore):
rails g manybots_googlecalendar:install
bundle exec rake db:migrate
Your Google Calendar Observer uses OAuth to authorize you (and/or your other Manybots Local users) with Google.
-
Go to this link: https://code.google.com/apis/console#access
-
Create a new project (ex: "My Manybots Google Calendar")
- Activate the Calendar API
- Create an Oauth 2 Client
- Copy the Client ID and Secret into
config/initializers/manybots-googlecalendar.rb
config.google_app_id = 'Client ID'
config.google_app_secret = 'Secret'
Restart your server and you'll see the Google Calendar Observer in your /apps catalogue. Go to the app, sign-in to your Google account and start importing your events into Manybots.






