Hello.
I need help while trying to use patreon-js.
All I’m trying to do is login into the api with the creator token , and check if a certain email address is a patron , and what their tier is.
This is a javascript only project, as I’m implementing this in a discord.js bot.
I just wanted to know if something simple to fix this is out there.
Something of the sort
const patreon = require(‘patreon’)
const api = patreon.patreon(‘my_creator_token_here’)
…
I don’t know what to do next , because If i do “api.somethinghere” the is no autocomplete , unlike all the other npm modules I used, so it makes me think that there is nothing I can do.
I’m asking help on how to login , without 0auth , just with the token, and how to start using it.
Documentation is very bad.
Edit: The best thing I found was patreon.js , simple to use , but there were missing features I needed. I really need to get the standard api working
Patreon libraries provide basic connectivity and operations to connect with Patreon api. If you need any specific, custom functionality, these will need to be created on your side. Better to do it without modifying the library code directly, and instead including the library in code which will use the library as the basis and expand on it.
With patreon.js I just did “api.getCurrentUserCampaigns()” and could get an object with all the info.
You are telling me that with patreon’s api I need to create my own functions to connect to the end points?
And , if it’s not asking too much , could you give me a simple example of how , for example to get the patrons names? Just so I have an idea of how it works , because all the APIs I have used so far have been straight forward , and all I had to do was api.get_what_i_need_here.
Thank you so much.