How do I get patron pledge tier?

#1

I feel like this should be easy but I can’t figure out where to get the information.

I’m trying to let people authorize their patreon with my website so they can get added benefits based on their tier.

I’m fetching /current_user and get back the user object but i’m not sure what to do with the data. There’s a relationships block that has “pledges”, but it seems to only contain an ID.

How do I make sure it’s valid and current?

#2

Still trying to do this, the docs don’t seem to have any information.

I know I can look in result.rawJson.data.relationships.pledges.data, then look up the pledge by id in result.rawJson.included to get more info, but what does that info mean? How do I know which fields I can look at to make sure the user is a current patron?