Using goobook to access gmail company directory instead of contacts

22 views
Skip to first unread message

dwo...@gmail.com

unread,
Jan 30, 2019, 4:57:11 PM1/30/19
to goobook
Hi all!

I want to know if it is possible to goobook to access gmail company (wide email list) directory, along with 'my contacts' lists.

I have to access a bunch of emails from my corporation, but it is hard because those emails list are huge.

Thank you.

David.

Christer Sjöholm

unread,
Jan 31, 2019, 2:39:33 AM1/31/19
to Goobook googlegroup
Have you tested? I hoped it worked but has not been able to test.
See
and tell how it goes if you test.

--
You received this message because you are subscribed to the Google Groups "goobook" group.
To unsubscribe from this group and stop receiving emails from it, send an email to goobook+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Christer Sjöholm
Lövlundsvägen 61B
814 91 Furuvik
Phone: +46 (0)70 2045037

David Wong-Aitken

unread,
Jan 31, 2019, 11:50:33 AM1/31/19
to goo...@googlegroups.com
Hi Crister. Thank you for your response.

How should I use it? Do I need to put a special command along with parameters to access Directory company?

Regards,

      .--.
     |o_o |     David Wong Aitken <dwo...@gmail.com>
     |:_/ |   
    //   \ \    Experto en tecnologías emergentes
   (|     | )   software libre & educación virtual
  /'\_   _/`\   www.linuxeame.com
  \___)=(___/ 
Llave criptográfica pública PGP:
www.dwonga.com/pgp-public-key


Christer Sjöholm

unread,
Jan 31, 2019, 11:57:27 AM1/31/19
to Goobook googlegroup
My interpretation of Googles documentation are that it should work by default.

David Wong

unread,
Jan 31, 2019, 12:30:14 PM1/31/19
to goo...@googlegroups.com

Well, I'm afraid that it did not work :(

This is a new account, with no contacts added (just company directory):

wonga@dwonga-ThinkPad-T480s:~/.local/bin$ ./goobook query D
Traceback (most recent call last):
  File "./goobook", line 11, in <module>
    sys.exit(main())
  File "/home/dwonga/.local/lib/python3.6/site-packages/goobook/application.py", line 106, in main
    args.func(config, args)
  File "/home/dwonga/.local/lib/python3.6/site-packages/goobook/application.py", line 154, in do_query
    goobk = GooBook(config)
  File "/home/dwonga/.local/lib/python3.6/site-packages/goobook/goobook.py", line 55, in __init__
    self.cache.load()
  File "/home/dwonga/.local/lib/python3.6/site-packages/goobook/goobook.py", line 262, in load
    raise Exception('Failed to find any contacts')  # TODO
Exception: Failed to find any contacts

Regards,


David.

Christer Sjöholm

unread,
Feb 1, 2019, 1:52:36 AM2/1/19
to Goobook googlegroup
Do you have admin rights for the organization?
Access to the directory seems to need to be allowed on the organization level.

David Wong-Aitken

unread,
Feb 3, 2019, 2:58:18 PM2/3/19
to goo...@googlegroups.com
Yes. I think you are right, it is necessary to have admin right to fetch that data.

Unfortunately, I don't have that level of access. Therefore, I am unable to test it. 

Thank you for all your time and support, and thank you for so awesome tool. 

David. 
Reply all
Reply to author
Forward
0 new messages