requests/requests-oauthlib — pull request #113 by al-the-x (2014-04-01 19:42:28+00:00)
Title: Support using subclasses of `oauthlib.oauth1.Client` with `requests_oauthlib.OAuth1`

In a current project, I have a need to use a custom subclass of `oauthlib.oauth1.Client` to provide some unique signing logic for a particular OAuth Provider, which uses a custom signature method as well as non-standard parameters included in the signature but not in the request.

#### Proposed:

Modify `requests_oauthlib.OAuth1` to use an injectible dependency by providing a `client_class` property and constructor argument. In the case that the constructor argument is supplied, `requests_oauthlib.OAuth1` will attempt to instantiate that class with all the arguments supplied to it. If not, it will attempt to use the class referred to by its `client_class` property, which defaults to `oauthlib.oauth1.Client` as normal. Any additional keyword arguments supplied to `requests_oauthlib.OAuth1` will be supplied to the client constructor, as well.

This same logic should also be extended to `requests_oauthlib.OAuth1Session`, which directly uses `requests_oauthlib.OAuth1`.