Install
Works with Drupal: 8.xUsing dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Initial commit of a Drupal 8 version of the Patreon API module, which provides functionality to link a Drupal site to the Patreon API.
In line with Drupal 8 standards, the module uses composer to pull in dependencies: after installation, you will need to run composer install if you have not installed via composer. an administrator is required to complete Oauth authentication of the site by registering at https://www.patreon.com/platform/documentation/clients and entering the Client ID and Client Secret into the admin form at /admin/config/services/patreon/settings.
The module provides a new service called patreon.api, with methods fetchUser, fetchCampaign, fetchCampaignAndPatrons, and fetchPagePledges to replace similar functions in the Drupal 7 version of the module. The alter hook hook_patreon_allowed_callbacks_alter() has been removed for Drupal 8: the Service uses a method getCallback() to return the router path for the default Oauth callback. If alternative callback paths are required, the PatreonService.php file should be extended in a custom module and the getCallback() method replaced to provide the alternative path.
Also includes the Patreon User sub-module that allows duplication of accounts between Drupal and Patreon and/or single sign on functionality, and the Patreon Entity module, which provides a bundleable entity with view, add, edit, delete access permissions for every bundle. When used in conjunction with Patreon User, this module can allow Patreon patrons access to private content on the Drupal site.