Merge branch 'master' of https://github.com/google/google-api-ruby-client
This commit is contained in:
commit
2cbd2ee181
|
@ -15,7 +15,7 @@ migrate to the latest version.
|
|||
Add this line to your application's Gemfile:
|
||||
|
||||
```ruby
|
||||
gem 'google-api-client', '0.9.pre2'
|
||||
gem 'google-api-client', '0.9.pre3'
|
||||
|
||||
```
|
||||
|
||||
|
@ -25,7 +25,7 @@ And then execute:
|
|||
|
||||
Or install it yourself as:
|
||||
|
||||
$ gem install google-api-client
|
||||
$ gem install google-api-client --pre
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ puts "Created event '#{event.summary}' (#{event.id})"
|
|||
events = calendar.list_events('primary', max_results: 10, single_events: true,
|
||||
order_by: 'startTime', time_min: Time.now.iso8601)
|
||||
puts "Upcoming events:"
|
||||
events.items.each do |evt|
|
||||
events.items.each do |event|
|
||||
start = event.start.date || event.start.date_time
|
||||
puts "- #{event.summary} (#{start}) (ID: #{event.id})"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue