Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User has specify pledge #28

Open
varadig opened this issue Oct 30, 2018 · 3 comments
Open

User has specify pledge #28

varadig opened this issue Oct 30, 2018 · 3 comments

Comments

@varadig
Copy link

varadig commented Oct 30, 2018

How can I get the current user is paid a specify pledge by api?
I need to know, which tier is paid by the current usef.

@nperickson
Copy link

Hey @varadig -

You should be able to grab that information from campaigns in the API. Check out the docs here.

@varadig
Copy link
Author

varadig commented Nov 1, 2018

Hi @nperickson

thanks, but it is not clear, how can I use the api V2 of patreon.

I tried on this way:
https://www.patreon.com/api/oauth2/v2/campaigns/1410243
but I got:

{
    "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": "87716a1a-18c4-466c-a416-dfed51bb6417",
            "status": "401",
            "title": "Unauthorized"
        }
    ]
}

I tried also with access_token https://www.patreon.com/api/oauth2/v2/campaigns/1410243?access_token=XYZ but the result is the same

@jotego
Copy link

jotego commented Feb 21, 2021

I am also trying to get this accomplished. Adding this as an example to the tutorial would be great. I think this is the most useful thing you can do with the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants