I had it working with v1 and I’m trying to move the the v2 but I’m getting an error:
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 passing the header ‘Authorization: Bearer [access_token]’ like before on v1.
The only thing I really changed is the endpoint url.
@Robb I haven’t used v2 yet but I think the id value there is the identifier of the membership not the campaign, so there’s no conversion process, rather (I guess) you would request the campaign to be included in the response. From the documentation:
If you request Campaign and memberships, you will receive information about the user’s memberships and the Campaigns they are Member of, provided you have the campaigns and identity[memberships] scopes.
Your example request appears to only request the memberships.
I’ve done some more investigating, and you’re right, that UUID is the membership ID, however it appears when requesting the Campaign resource from the /identity endpoint, it only fetches the auth’d user’s campaign, not the compaign resources of each membership.
But this would mean an extra API request for every single membership just to obtain the campaign ID. It would make more sense if the campaign ID could be added to the Member resource, or if it could be returned when including Campaign in the /identity endpoint.
I’m trying to implement OAuth on my web app.
but It works only creator’s account.
is there any steps to activate for others account?
// error message from patreon
“errors”: [
{
“code”: null,
“code_name”: “OAuthClientViewForbidden”,
“detail”: “You do not have permission to view OAuth Client with id [my-client-id].”,
“id”: “[my-id]”,
“status”: “403”,
“title”: “You do not have permission to view this OAuth Client.”
}
]
Great that there’s a last_charge_date but why not to have a last_charge_amount_cents or something like that?
With the last_charge_date we can find out if the patron paid but if he changes the pledge amount just after the payment he will look like to be in another tier.
how do I find out how much the patron actually paid?
Hello everyone!
Using endpoint for https://www.patreon.com/api/oauth2/v2/campaigns?fields[campaign]=created_at,creation_name,discord_server_id,image_small_url,image_url,is_charged_immediately,is_monthly,patron_count,pay_per_name,pledge_url,published_at,summary,patron_count,earnings_visibility I don’t receive earnings_visibility in the response. Why? how I can fix it?
Well, many integrations are largely using api v2 since a year or more now. Like WP plugin, users of majority of which are on v2. So it may technically in beta but it is pretty much usable.