vinitkumar / googlecl

GoogleCL rewrite in __progress__
Other
324 stars 48 forks source link

Can't list contacts #265

Closed wjhendr closed 5 years ago

wjhendr commented 7 years ago

Hello,

I just cloned (version 0.9.15) and installed. When prompted at first run, I entered:

Please specify user: *********@gmail.com
Please specify title: contacts

I then got my auth code from a browser, pasted it in, and it got accepted:

Successfully retrieved access token

I cannot list contacts, though:

google contacts list

The above command gives the error:

AttributeError: 'ContactsService' object has no attribute 'GetContacts'

What is the problem? Probably something I'm doing/not doing, but googling and searching here yielded nothing.

Thanks

vinitkumar commented 7 years ago

@wjhendr thanks for reporting this issue. The underlying library has been upgraded but not all code is updated in this tool. It's a problem at our end. I will try to fix this. Please look out for this issue, when done, I will put the update here.

vinitkumar commented 7 years ago

Note to self: https://gist.github.com/jay0lee/2bfa451e1f79354f450ff5f1a757e743 https://developers.google.com/api-client-library/python/auth/installed-app

bjornpagen commented 7 years ago

Similar problems here:

~/download/googlecl master 
❯ python2 src/google.py docs list

Refreshing access_token
Traceback (most recent call last):
  File "src/google.py", line 956, in <module>
    main()
  File "src/google.py", line 942, in main
    run_once(options, args)
  File "src/google.py", line 735, in run_once
    raise run_error
AttributeError: 'DocsService' object has no attribute 'get_folder'
vinitkumar commented 5 years ago

@wjhendr Bug from my side to get the oauth2 getting to work somehow. The new rewrite will resolve this. Keep an eye on #274.