Open Number0131 opened 4 years ago
Check out the calls which the WP plugin uses for various purposes.
You can copy those calls for your app. Of course, you will need to have requested the scopes for the user tokens when doing something with a user token. Creator token should already have the scopes you need.
In your case the fetch_campaign and creator related calls should work.
/campaigns?include=goals&fields[goal]=amount_cents,title,description,created_at,reached_at,completed_percentage
The above call to a v2 endpoint with a v2 client should give you the goals.
I managed to fetch campaign information from my account but i can't get more detailed data than this:
Is there a way to access infromation mentioned here https://docs.patreon.com/?php#goal? Do i need a special scope maybe? Atm. i have the campaign scope.