Release 2.1.1
Summary:
- Added support for configuring API access tokens using
Client.set_access_token(token)
. - Added support for configuring custom User-Agent data using
Client.set_user_agent_component(key, value)
. This can be used by plugin authors to announce their plugin usage to Mollie:client.set_user_agent_component('Oscar', OSCAR_VERSION)
. Recommended usage is to report the framework (f.i.Saleor
) + version you're integrating in, and the Mollie plugin (f.i.SaleorMollie
) + version you're developing.
Deprecation notice: configuring API keys while initializing a new Client
object (client = Client(api_key=...) is deprecated now. In stead, you can use client = Client(); client.set_api_key(...)
. The old method will continue to work for some time but will be removed in the future.