paypal/rest-api-sdk-python — pull request #22 by xlevus (2013-12-12 16:57:31+00:00)
Title: Added the ability to pass in your own API object.

In some situations a developer may want to process payments for multiple accounts/environments in the same thread. As the current implementation uses a global Api object this could result in the Api object changing mid-request.

So I've added the ability to pass in your own Api objects into Resource objects and their classmethods, these are then passed on to new Resource objects.

If no Api object is specified, `paypalrestsdk.api.default()` will be used.