I want to set up content on my site to only be available to certain Tiers. Therefore, when creating the content, I want to list off all available Tiers, allowing the content creator to (on my site) select which Tier will have access to the content. Then, users will be checked for tier when trying to access the content, only being given permission if they are of the correct tier.
To do this, I need to retrieve a list of tiers from the API. However, i am unable to retrieve any data beyond the Tier ID. I’m making a request to: https://www.patreon.com/api/oauth2/v2/campaigns?include=tiers&fields[tier]=description
My response is:
Array (  => Array ( [attributes] => Array ( ) [id] => 2861149 [relationships] => Array ( [tiers] => Array ( [data] => Array (  => Array ( [id] => 3762195 [type] => tier ) ) ) ) [type] => campaign ) )
I cannot find any way to retrieve fields for Tiers. Is anyone able to assist me with this?