sponsors-api icon indicating copy to clipboard operation
sponsors-api copied to clipboard

Deprecation of "Sponsor" object

Open alexellis opened this issue 5 years ago • 2 comments

Prerequisites

  • [ ] I searched to see if the issue already exists.

Description

The GitHub API is deprecating the "Sponsor" object in October. So kind of them :)

I came here as I haven't been able to work out how to use the new API and am finding it really confusing - the old approach you're using here is much easier to grok.

Screenshot 2020-07-01 at 10 24 45

I thought you should know, and wondered if you'd started work on moving to the new API format?

Steps to Reproduce

This will stop working.

alexellis avatar Jul 01 '20 09:07 alexellis

ah nice haha, nah I haven't looked into it yet

tj avatar Jul 01 '20 10:07 tj

I've figured it out finally. They are using some kind of union which means you need a type assertion to access the data now. ... on User

alexellis avatar Jul 01 '20 10:07 alexellis