PHP API how to get a list of Supporters on my website (not Wordpress)

Hi friends, thanks in advance for some guidance - I’m hoping to run across someone who’s done this with Patreon. I have access to my php admin and have been using Bootstrap with regular html/css, and a little php to make my website. I don’t know php well, but started studying more since I think it’ll be the best way to get a list of my Patreon supporters onto my site.

I’ve read these over several times:
API Reference & GitHub - Patreon/patreon-php: Interact with the Patreon API via OAuth

But without getting a lesson or tips from someone who knows this better than I do, I’m kind of stuck typing out the names individually and if I forget someone I feel bad, so I hope to set up this API thing.

Thanks again. :slight_smile:

  • Jenni

Best way would be to just use the PHP lib to connect to the api. Then you can use its examples (even c/p some of them) to do some common operations. This way you can get a jumpstart and then move on to what modifications you want to do. First create your app at the register clients page mentioned in api reference, then put the PHP lib to somewhere in your site, then use the credentials to connect to the api.

1 Like

Ok thanks for the reply ! I think I understand & I’ll be back if I still can’t figure it out later :slight_smile:

Edit: I got a little further towards getting my Login button to work. I’m getting this error though, and searching the threads to see if I can find an answer.This is what I’ve got so far:

Login page: https://jenninexus.com/patreon-login

Error I’m getting: {“error”:“invalid_request”,“error_description”:“Mismatching redirect URI.”,“state”:“eyJmaW5hbF9wYWdlIjoiaHR0cHM6XC9cL2plbm5pbmV4dXMuY29tXC9wYXRyb25zLW9ubHkifQ==”}

I tried it both with and without the s on https. Thanks for the help. Looks like I don’t need Composer, from what I’ve read. Do I need Xampp ? I’m using FTP and MyPhp Admin but I’m such a noob :joy_cat:

I’ll be back in the morning to try some more.

Either the redirect uri sent by your app while sending the user to Patreon is totally different from what you have in your app details, or you are starting from a https page with a http redirect uri or vice versa.

Hey there,

To get members can use one of the libraries out for php. Either Codebard’s patreon-php over at GitHub - codebard/patreon-php: Interact with the Patreon API via OAuth

or my patreon-feed at GitHub - daemionfox/patreon-feed: Patreon RSS library based on Patreon's API

I will say, that if you’re just looking for a list of members, goals or posts, I’d use mine, but if you want more down deep details, go for Codebard’s

–Daemionfox

1 Like

You should use the upstream for php repo at github. My fork is not maintained anymore - updates are being made to the upstream.