-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Strée Eloi edited this page Jul 24, 2017
·
1 revision
- https://patreon.zendesk.com/hc/en-us/articles/206525646-Does-Patreon-have-an-API-
- https://www.patreon.com/platform/documentation/oauth
- Public User: https://www.patreon.com/api/user/|ID|
- Public Compaign: https://www.patreon.com/api/campaigns/|ID|
- Access Client ID & Secret:
https://www.patreon.com/platform/documentation/clients - Access Permision:
GET https://www.patreon.com/oauth2/authorize?response_type=code&client_id=|clientID|&redirect_uri=|recdirectUrl|&scope=|optinal_scope|&state=|optinal_state| - Access User Token:
POST https://api.patreon.com/oauth2/token?code=|code|&grant_type=authorization_code&client_id=|id|&client_secret=|clientid|&redirect_uri=|redirectUrl| - Refresh Token:
POST https://api.patreon.com/oauth2/token?grant_type=refresh_token&refresh_token=|refresthToken|&client_id=|clientID|&client_secret=|clientSecret| - User Campaign info:
GET https://api.patreon.com/oauth2/api/current_user/campaigns?include=rewards,creator,goals,pledges - User Pledge info:
GET https://api.patreon.com/oauth2/api/campaigns/|campaign_id|/pledges - User information:
GET https://api.patreon.com/oauth2/api/current_user
- Campaign: https://www.patreon.com/bePatron?c=|campaingID|
- Reward: https://www.patreon.com/bePatron?c=|campaignID|&rid=|rewardId|
Download: Advanced REST Client
- Access your Client ID and Secret, Here:
https://www.patreon.com/platform/documentation/clients - 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>"; ?>
- Ask for authorization code, here:
https://www.patreon.com/oauth2/authorize?response_type=code&client_id=|YouAppClientID| - Open Advanced REST Client
- Enter the following information and your generated code
- Save your token information
- Access to the API with your Bear |Token| access:
A. Your campaign information:
B. Your Pledge information:
C. Your personal account information:
- Create an application to convert the Json to your wanted information.
- Here you go :)
// ?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