Closed spinus closed 9 years ago
Just subclass Provider
and write your own fetch
method. I suppose if you wanted we could add a parameter to the bootstrap_
methods that accepts a Provider
implementation, but I'd rather wait til there's a demonstrable need for such a feature.
I tried to avoid rewriting bootstrap_ methods (recreating providers), but that's fair enough. Thanks.
Do you plan to add a way to use custom data retrieval method by any chance?
It could be nice because than different methods could be used, like requests library or asyncio in python3.4.
oauthlib (https://oauthlib.readthedocs.org/en/latest/oauth1/client.html) has this implementation and works pretty nice. Example:
So in this case it could be
Or, could be easier maybe to allow override fetch method by using a callback?
I know I can monkeypatch fetch method but that don't seem to be a good way in a long run.