How to enable services Discovery API in GoogleCL?

Posted by Marcos on Ask Ubuntu See other posts from Ask Ubuntu or by Marcos
Published on 2012-04-18T20:55:08Z Indexed on 2012/11/22 17:11 UTC
Read the original article Hit count: 444

Filed under:

There are bits and pieces of information all over the place but I'm trying to put it all together so that GoogleCL finally accesses more than the initial 7 services. Does anyone know of a step-by-step?

Right now any attempt outside these result in the error message:

google tasks list

Did you specify the service correctly? Must be one of 'picasa', 'blogger', 'youtube', 'docs', 'contacts', 'calendar', 'finance'

I installed GoogleCL from the Ubuntu repos, authenticated a few bundled services like contacts, docs etc. and those work great, giving me access to do certain operations like upload from the command line.

I would really like to get it going to support tasks and all the other elegible Google services shown at https://code.google.com/apis/explorer/#_s=tasks

Here are some guides/partial steps I've found:

(indicates needing to check it out updated GoogleCL from the subversion repository.)

easy_install --upgrade google-api-python-client

Result:

$ google
> discovery list
Traceback (most recent call last):
  File "/usr/bin/google", line 488, in run_interactive
    run_once(options, args)
  File "/usr/bin/google", line 540, in run_once
    options.config)
  File "/usr/bin/google", line 364, in import_service
    force_gdata_v1 = config.lazy_get(package.SECTION_HEADER,
AttributeError: 'module' object has no attribute 'SECTION_HEADER'

© Ask Ubuntu or respective owner

Related posts about google