Open Vilksian opened 3 years ago
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')
[]()
Also just ran into this
Hi is this issue this open if not can assign me other issue
An error in the API Resources section of the documentation https://www.npmjs.com/package/patreon#api-resources
On the second line, it should be