go-ecobee
go-ecobee copied to clipboard
added ecobee.New(), Options and AuthCache
This allows persisting OAuth2 tokens in storage other than files, for example etcd or a database.
Implemented New() which takes context.Context and Options + deprecated NewClient()
I'm reopening this PR so I can remove it from my INBOX but not lose track of it :) I don't want to forget about it, as I promised I'd give a serious look to improving the API. So even if we're not merging this exact code, I want to keep the discussion around.