Error [Forbidden] when submitting event in google calendar, API googleCL

4

For those who do not know, googleCl (Command line tools for the Google Data APIs) follows the link

I use only the command that sends an event to my google calendar.

I now have an error message, where previously it ran normal,  simply stopped working from time to time, here is an example of the error:

#google calendar add "teste"
Traceback (most recent call last):
File "/usr/local/bin/google", line 991, in <module>
main()
File "/usr/local/bin/google", line 977, in main
run_once(options, args)
File "/usr/local/bin/google", line 763, in run_once
task.run(client, options, args)
File "/usr/local/lib/python2.7/dist-packages/googlecl/calendar/__init__.py", line 330, in _run_add
results = client.quick_add_event(events_list, cal.user)
File "/usr/local/lib/python2.7/dist-packages/googlecl/calendar/service.py", line 277, in quick_add_event
USER_BATCH_URL_FORMAT % calendar_user)
File "/usr/local/lib/python2.7/dist-packages/gdata/calendar/service.py", line 446, in ExecuteBatch
return self.Post(batch_feed, url, converter=converter)
File "/usr/local/lib/python2.7/dist-packages/googlecl/service.py", line 69, in retry_post
return self.retry_operation(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googlecl/base.py", line 394, in retry_operation
raise err
gdata.service.RequestError: {'status': 403, 'body': '<HTML>\n<HEAD>\n<TITLE>Forbidden</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Forbidden</H1>\n<H2>Error 403</H2>\n</BODY>\n</HTML>\n', 'reason': 'Forbidden'}
  

I have already updated the API to the latest version (googlecl_0.9.14-2_all.deb) and nothing, continues with the same error

    
asked by anonymous 14.04.2015 / 22:58

1 answer

3

The problem is that GoogleCL uses version 2 of Calendar GData API , which was discontinued in November 2014 :

  

Any service dependent on the Calendar GData API (v1, v2), as   Google Calendar Connectors ( GCC ) will no longer work as intended.    GCC users should update to use the Interop Calendar or build your own custom connectors so that it syncs with API v3.

Since GoogleCL was no longer updated, it was last December 2012 , v3 is not supported for Calendar GData.

Alternatively, you can use gcalcli , which uses Calendar GData v3 . The down side is that gcalcli does not support other Google services, just for Calendar.

Installation

To install it open a terminal and enter the command:

$ sudo pip install gcalcli

If you do not have pip installed, do the following:

$ sudo apt-get install python-pip

Utilization

Syntax:

gcalcli [opcoes] comando [argumentos ou opções de comando] 

For information on how to use it, type:

gcalcli --help

Note : The first time you use it, a page will open in your browser to request permission, it is used OAuth2 to authenticate to the account.

    
18.04.2015 / 07:34