Hi all,

I am proposing inclusion of a new extension that allows the user to post
an activity to a Dailymile [1] stream. The current code is maintained on
GitHub [2].

The extension adds a button "Post to Dailymile" that will use the
Dailymile API to add an entry on the user's Dailymile activity stream.

There are some technical gray areas that I would like to point out.
First, the extension requires an additional library, python-oauth to
authenticate and communicate with the service. This adds a new
requirement to Pytrainer. Also, it requires storage of an OAuth access
token, which is done right now by writing it to disk in clear in a file
such as ~/.pytrainer/dailymile.json. I am unsure if this is good practice.

The current code -- being basically a hack that allows me to automate
the process -- includes almost no error handling and is probably not
very robust. However, I hope the code is clean enough that it may be
useful and easily improved.


[1] http://www.dailymile.com/
[2] https://github.com/deuxpi/pytrainer/tree/dailymile-extension


-- 
Philippe Gauthier <philippe.gauth...@deuxpi.ca>
http://www.deuxpi.ca/

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to