filiptronicek / gh-sponsors-api

A REST API for GitHub Sponsors
https://ghs.vercel.app/
MIT License
37 stars 5 forks source link

Endpoint to get active sponsors #24

Closed achimmihca closed 1 year ago

achimmihca commented 1 year ago

Is there a way to query for active sponsors? I did not find a way to determine this from the JSON response.

filiptronicek commented 1 year ago

This is a current limitation of the sponsors_partial method we're doing now. I think it would be nice to have in v2 of the /sponsors/ endpoint.

filiptronicek commented 1 year ago

Fixed by https://github.com/filiptronicek/gh-sponsors-api/commit/639023a734d1dae7af9eea561de9cb44c4c9ae32

filiptronicek commented 1 year ago

(please use /v2/sponsors/{user} now)

achimmihca commented 1 year ago

The v2 endpoint returns "404 not found". Example: https://ghs.vercel.app/v2/sponsors/filiptronicek

filiptronicek commented 1 year ago

Sorry for that @achimmihca, it seems like there has been an error in the build. Should be sorted out now

achimmihca commented 1 year ago

Thanks for implementing this.

However, "current" and "past" sponsors are swapped. Otherwise it seems to work.

Should I open a new issue?

filiptronicek commented 1 year ago

@achimmihca please do open one, I'll have a look soon.