谷歌日历观看API方法的问题我与谷歌日历推送通知(或web_hook)一个问题 - 在Ruby on Rails的calendar.event.watch API方法。我正在使用gem“google-api-client”。然后在铁轨控制台尝试做:与回报率
require 'google/api_client'
client = Google::APIClient.new
client.authorization.access_token = "ya29.ewCcVb888OzntBusvtRcZsvfF7kOFMusnyjncR1-FJVr_oX79SgcOMbb"
data = client.execute api_method: service.events.watch, parameters: { id: "my-unique-id-0001", type: "web_hook", calendarId: "primary", address: "https://mywebsite.com/notifications"}
,并收到此错误:
#<Google::APIClient::Schema::Calendar::V3::Channel:0x3ffc15ebc944 DATA:{"error"=>{"errors"=>[{"domain"=>"global", "reason"=>"required", "message"=>"entity.resource"}], "code"=>400, "message"=>"entity.resource"}}>>
我也面临着谷歌日历腕表问题。 http://stackoverflow.com/questions/34654504/calendar-events-notification-not-received-on-server – 2016-01-07 15:53:00