{"repo":"Patreon/patreon-js","free":true,"listed":false,"github":"https://github.com/Patreon/patreon-js","clone":"git clone https://github.com/Patreon/patreon-js.git","description":"Use the Patreon API via OAuth.","language":"JavaScript","stars":167,"topics":["patreon","oauth"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"patreon-js [!CAUTION] This package is deprecated. It uses Patreon API v1, which is deprecated and no longer maintained. This SDK will not receive further updates. We recommend migrating to the Patreon API v2 by integrating directly using your own HTTP client. See the API documentation and v1 to v2 migration overview for details. --- Use the Patreon API via OAuth. Setup You'll need to register an OAuth client account to receive a client id , client secret and other info for use with this module. Visit the OAuth Documentation Page while logged in as a Patreon creator on patreon.com to register your client. Installation Install with npm. You'll need to have Node.js installed. Usage When you see 'pppp' replace pppp with the data you received setting up your OAuth account or otherwise suggested by the inline comments. If you're using babel or writing es2015 code: You can also reference the included server example. Methods var patreonOAuthClient = oauth(clientId, clientSecret) Returns an object containing functions for fetching OAuth access tokens. clientId The client id you received after setting up your OAuth account. clientSecret The client secret you received after setting up your OAuth account. patreonOAuthClient.getTokens(redirectCode, redirectUri) This makes a request to grab tokens needed for making API requests, and returns a promise. redirectCode Use the code query param provided to your OAauth redirect route. redirectUri This should be the same redirect route you provide","default_branch":null,"files":null,"tree":[],"storefront":"/r/Patreon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Patreon/patreon-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}