Open soatok opened 4 years ago
Hi @soatok, I also find this a bit annoying...
I would be really awesome if more people stepped up with such a solution 😅 😅
From popular repositories I only know https://github.com/vlang/v that's also using my endpoint - probably there are more that I'm not aware of because the Heroku usage used to expire a bit later than this.
If you can I'd appreciate a donation, my Patreon page is mostly related to Colyseus's projects, although I built this for Colyseus as well 😅
I think I can deploy & maintain a simple DigitalOcean machine for this soon!
I was searching and found that Patreon already provides an official API for retrieving campaign data: https://github.com/badges/shields/issues/3585#issuecomment-689141583
URL for my campaign: https://www.patreon.com/api/campaigns/365642 Full Shields.io Image URL: https://img.shields.io/badge/dynamic/json?logo=patreon&style=for-the-badge&color=%23e85b46&label=Patreon&query=data.attributes.patron_count&suffix=%20patrons&url=https%3A%2F%2Fwww.patreon.com%2Fapi%2Fcampaigns%2F365642
Unfortunately, without a custom endpoint, it is not possible to display the amount in $$$, only the number of patrons, which may be enough for most cases!
(API Docs: https://docs.patreon.com/#introduction)
I would honestly rather pay $X/month (where X >= the hosting costs + processing fees + misc overhead) to make the problem go away for everyone who uses this. :3
On Mon, Sep 28, 2020, 12:31 PM Endel Dreyer notifications@github.com wrote:
I was searching and found that Patreon already provides an official API for retrieving campaign data: badges/shields#3585 (comment) https://github.com/badges/shields/issues/3585#issuecomment-689141583
URL for my campaign: https://www.patreon.com/api/campaigns/365642 Full Shields.io Image URL: https://img.shields.io/badge/dynamic/json?logo=patreon&style=for-the-badge&color=%23e85b46&label=Patreon&query=data.attributes.patron_count&suffix=%20patrons&url=https%3A%2F%2Fwww.patreon.com%2Fapi%2Fcampaigns%2F365642
Unfortunately, without a custom endpoint, it is not possible to display the amount in $$$, only the number of patrons, which may be enough for most cases!
(API Docs: https://docs.patreon.com/#introduction)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/endel/shieldsio-patreon/issues/8#issuecomment-700144629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6HUHUQAYTWDKAXKFGDCULSIC25XANCNFSM4R4CH2IQ .
@soatok you could look at using vercel cloud functions, that's what i did to get a badge up and running for our repo again
Here's the little api i made: patreon.leah.vercel.app/api/dollars?campaign=2489866, it's just 11 lines of code so its super easy to create your own if you dont want to rely on mine.
I forgot to mention: vercel is completely unlimited and free, they rely on enterprise customers to pay the bills.
If you can I'd appreciate a donation, my Patreon page is mostly related to Colyseus's projects, although I built this for Colyseus as well 😅
I joined your $30/month tier. Let me know if DO bills higher and I'll manually increase my contribution.
Thank you so much for supporting me @soatok :pray:
As @leahlundqvist suggested, I've set it up on Vercel and created a very simple generator page to configure your badge, you can check it out here: https://shieldsio-patreon.vercel.app/
I'll make sure to keep the tool up-to-date in case Patreon updates its website. Thanks!
Is there any way we can... I dunno, sponsor your work to ensure these badges stay available towards the end of the month?
My idea goes like this:
Maybe we could use some sort of monthly patronage platform to facilitate such a thing? Crazy idea, right?
No but in all seriousness Heroku isn't super expensive and I could probably personally float this bill but since you built a simple thing that's useful for a lot of open source developers, I think it'd only be fair for you to benefit from it as much as we do. (And the upside: We won't have end-of-the-month banner outages anymore.)