Skip to content
Strée Eloi edited this page Jul 24, 2017 · 1 revision

How to connect to Patreon API with Unity

API

Manual

Public Access
API Access
Display

Rest API

Download: Advanced REST Client

How to use

  1. Access your Client ID and Secret, Here:
    https://www.patreon.com/platform/documentation/clients
  2. Set your app redirection your website page:
    http://jams.center/patreon/redirect/index.php
    <?php echo "<h1>Patreon Redirection</h1>"; echo "<h2>User Authorization Code:</h2><p>". $_GET["code"] ."</p>"; echo "<h2>Scope:</h2><p>". $_GET["scope"] ."</p>"; echo "<h2>Error:</h2><p>". $_GET["error"] ."</p>"; ?>
  3. Ask for authorization code, here:
    https://www.patreon.com/oauth2/authorize?response_type=code&client_id=|YouAppClientID|
  4. Open Advanced REST Client
  5. Enter the following information and your generated code
  6. Save your token information
  7. Access to the API with your Bear |Token| access:
    A. Your campaign information:
    B. Your Pledge information:
    C. Your personal account information:
  8. Create an application to convert the Json to your wanted information.
  9. Here you go :)

Draft

// ?include=null
https://www.patreon.com/api/rewards/|rewardId|
https://www.patreon.com/api/campaigns/678965/pledges
https://www.patreon.com/api/oauth2/api/campaigns/678965/pledges?page%5Bcount%5D=20&sort=created