Open Vilksian opened 3 years ago
After a bit of digging through the library, I found that the following code seems to work much better:
var URL = require('url');
var { patreon, jsonApiURL, oauth } = require('patreon');
var patreonAPI = patreon
var patreonOAuth = oauth
var CLIENT_ID = 'pppp'
var CLIENT_SECRET = 'pppp'
var patreonOAuthClient = patreonOAuth(CLIENT_ID, CLIENT_SECRET)
Using the example code with the correct CLIENT_ID and CLIENT_SECRET, results in the last line of the above code erroring, with the following error:
According to the documentation, and the example therein, that should be a function, yet it isn't.