Google calendar api 在rails中嵌入google日历
我试图在rails页面中显示Google日历。如果我登录浏览器(在gmail帐户中),我可以在localhost中看到包含详细信息的Google日历。如果我从Google帐户注销,我在localhost中看不到我的日历详细信息。如何解决这个问题 我正在使用iframe在rails中嵌入Google日历Google calendar api 在rails中嵌入google日历,google-calendar-api,Google Calendar Api,我试图在rails页面中显示Google日历。如果我登录浏览器(在gmail帐户中),我可以在localhost中看到包含详细信息的Google日历。如果我从Google帐户注销,我在localhost中看不到我的日历详细信息。如何解决这个问题 我正在使用iframe在rails中嵌入Google日历 require 'gmail' class CalendarController < ApplicationController def event_display gmail
require 'gmail'
class CalendarController < ApplicationController
def event_display
gmail = Gmail.new('username','password')
end
end
需要“gmail”
类CalendarController<应用程序控制器
def事件显示
gmail=gmail.new('username','password')
终止
终止
在事件中显示.html.erb
<iframe src="https://www.google.com/calendar/b/0/embed?height=600&wkst=1&bgcolor=%23FFFFFF&src=vinothinibj%40gmail.com&color=%232952A3&ctz=Asia%2FCalcutta" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>
您需要从研究身份验证开始(我现在正在努力解决这一问题) 还要注意的是,公众通过私人链接查看私人日历的功能也正在停止
-马库斯该页面不再可用