Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc Suggestion #8

Open
raindog308 opened this issue Mar 3, 2013 · 2 comments
Open

Doc Suggestion #8

raindog308 opened this issue Mar 3, 2013 · 2 comments

Comments

@raindog308
Copy link

Coming into this module cold, a couple points.

First, if you "python setup.py install" I think the example is actually "import poodledo.apiclient", right?

Second, I couldn't find any info on what should be in tdclirc or what its format is - ConfigParser format? What sections? What fields? Dug it out of cli.py but you might want to document it.

Keep up the good work!

@raindog308
Copy link
Author

Update: er, thought I dug it out but apparently not right. My tdclirc in ~/.tdcli/tdclirc is:

[application]
id =
token =

[config]
username = someone@example.com
password = MySuperSecretPassword

But this:

#!/usr/bin/python

import poodledo
from poodledo.apiclient import ApiClient
c = ApiClient()
c.authenticate('someone@example.com',MySuperSecretPassword')

Gives:

Traceback (most recent call last):
File "/app/backup_toodledo/backup_toodledo.py", line 6, in
c.authenticate('someone@example.com',MySuperSecretPassword')
File "/usr/lib/python2.6/site-packages/poodledo-0.2-py2.6.egg/poodledo/apiclient.py", line 180, in authenticate
self._userid = bool(self._userid) and self._userid or self.getUserid(email, passwd)
File "/usr/lib/python2.6/site-packages/poodledo-0.2-py2.6.egg/poodledo/apiclient.py", line 198, in getUserid
sig=md5(email + self.application_token).hexdigest(),
TypeError: cannot concatenate 'str' and 'NoneType' objects

@yardern
Copy link

yardern commented Mar 19, 2022

Have you ever got it working please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants