keans / lmnotify

A package for sending notifications to LaMetric Time.
MIT License
27 stars 4 forks source link

Auth without config file #3

Closed alex-ruehe closed 7 years ago

alex-ruehe commented 7 years ago

client_id and client_secret can be passed directly into the constructor.

keans commented 7 years ago

Adapted the idea to also allow authentication via environment variables. Note that I also changed the order of constructor arguments since it will make more sense for casual users to provide the id and secret as first argument.