I’m trying to verify supporter status with API calls. So far I got to receiving a token (identity.memberships
scope). It works for my user, but does not work for any other user, returning 401
curl -s --request GET --url https://www.patreon.com/api/oauth2/v2/identity?include=memberships.campaign\&fields%5Bmember%5D=patron_status --header 'authorization: Bearer xxxxxxx'
{
"errors":[
{
"code":1,
"code_name":"Unauthorized",
"detail":"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.",
"id":"586cfb60-603a-417a-a69e-5e4757752c44",
"status":"401",
"title":"Unauthorized"
}
]
}
To be clear, same call works just fine if I log in as myself, even if I issue a token with correct scope and everything.
I can see from the docs that I can’t access user’s pledges without some interaction from Patreon, even if users allow it. But I can’t even get a user ID to verify against list of my patrons… Are there other ways of doing it which doesn’t require manual approval from the Patreon administration?
P.S.
I do not have PHP or Wordpress, it’s a web app which can make simple fetch requests.