lionheart / python-harvest

A Python wrapper for the Harvest time-tracking API.
Apache License 2.0
55 stars 49 forks source link

OAuth2? #22

Closed trikosuave closed 8 years ago

trikosuave commented 8 years ago

Hi. The token shows refresh_token and access_token. Via the Authorized OAuth2 API Clients in harvest I only see client_id and client_secret. Where do I find/create refresh/access tokens to use with this library?

Thanks!

tab-cmd commented 8 years ago

19 addresses this

trikosuave commented 8 years ago

Excellent! Thank you!

trikosuave commented 8 years ago

Hi. Quick question. I am hoping to write a simple python app that will grab a couple bits of data from Harvest. I want this app to be ran automatically at times and really don't want to use email/password to auth (as that would have to be stored somewhere). I also think it would be a lot of extra work to setup and keep state of a token for Authorization Code Flow. Any chance Harvest can or will support Client Credentials Grant to use id/key more directly for a more simple OAuth solution? https://tools.ietf.org/html/rfc6749#section-4.4

Thanks!

dlo commented 8 years ago

This project is not maintained by the Harvest team, so you'll need to ask Harvest directly for that. 😀