In previous I use gdocs4ruby to access Google document of my account
from outside the google.
I used the code inside my controller:
require ‘rubygems’
require ‘gdata’
require ‘gdocs4ruby’
include GDocs4Ruby
class DocumentController < ApplicationController
def creat
service = GDocs4Ruby::Service.new()
service.debug = true
begin
if @authentication = service.authenticate(params[:user_name],
params[:password])
@folders = service.folders <<===================
@documents = service.files
end
rescue Exception => e
warn(e.message)
end
end
end
all the things working correctly ,but the code service.folders are not
working.
I wrote the following code in rails console:
equire “rubygems”
require ‘gdocs4ruby’
include GDocs4Ruby
service = GDocs4Ruby::Service.new()
service.debug = true
service.authenticate(‘[email protected]’,‘xxxxxxxxxxxx’)
service.files
this fetch all the file list inside my application
but when I execute :
service.folders
I am getting following error:
invalid response received: 403
GData4Ruby::HTTPRequestFailed: GDataServiceForbiddenException
403.4
SSL required
some day’s before this code had been working fine.
what happed if you have any desire solution. Please help
Advance Thanks
Kausik