[SOLVED] Cant get members for my Campaign via oauth2 V2 in PHP

I’m trying to get my campaign information via the new BETA API via this link:

https://www.patreon.com/api/oauth2/v2/campaigns/*******/members?include=currently_entitled_tiers,address&fields[member]=full_name,is_follower,last_charge_date,last_charge_status,lifetime_support_cents,currently_entitled_amount_cents,patron_status&fields[tier]=amount_cents,created_at,description,discord_role_ids,edited_at,patron_count,published,published_at,requires_shipping,title,url

The ******* replaced with my numeric seven digit campaign ID of course.
However, it gives me following error every time:

Unauthorized, The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn’t understand how to supply the credentials required.

I’m certain I send the correct token since the old API works fine with the link:

https://www.patreon.com/api/oauth2/api/current_user?fields[pledge]=total_historical_amount_cents,is_paused,outstanding_payment_amount_cents,declined_since

What could be the problem?

Thank you for your help!

Update:

I figured out that you MUST register a v2 client for it and it works now!
Maybe this should be stated more clear in the documentation, as it is only mentioned in a side note at the moment and it sounds like its optional.

How can I add members to a campaign using API.
I have different campaigns and want to subscribe a user to a campaign of $5, I have 3 campaigns.

Hi @logixsol! You cannot do this at this time, the members endpoint is read-only. Feel free to reach out if you have any more questions!