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

API Resources Documentation Error #39

Open
Vilksian opened this issue Aug 26, 2020 · 3 comments
Open

API Resources Documentation Error #39

Vilksian opened this issue Aug 26, 2020 · 3 comments

Comments

@Vilksian
Copy link

Vilksian commented Aug 26, 2020

An error in the API Resources section of the documentation
https://www.npmjs.com/package/patreon#api-resources

const { patreon, jsonApiURL } = require('patreon')
const pledge_schema = require('patreon/schemas/pledge')
 
const patreonAPIClient = patreon(access_token)
const url = jsonApiURL(`/current_user`, {
  fields: {
    pledge: [...pledge_schema.default_attributes, pledge_schema.attributes.total_historical_amount_cents]
  }
})
patreonAPIClient(url, callback)

On the second line, it should be

const pledge_schema = require('patreon/dist/schemas/pledge')
@thooria
Copy link

thooria commented Sep 19, 2020

@toppsdown
Copy link

Also just ran into this

toppsdown added a commit to toppsdown/patreon-js that referenced this issue Sep 18, 2021
@utkarsh-shrivastav77
Copy link

Hi is this issue this open if not can assign me other issue

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

4 participants