Closed swarajbachu closed 1 year ago
got this and found out we will need a username and password for calling the post method, I have to create different instances of threadsAPI under different routes, what do I do? Is there a better approach?
i found the answer
can I post to threads only using threads id, or how can I avoid multiple logins, for a reason I had to call const threadsAPI = new ThreadsAPI({ //feilds username:''' password:''' });
so, I wanted to use bearer token instead coz it will be generated once we login one time, so can I do it const threadsAPI = new ThreadsAPI({ token: 'token', username:'username' }); this way?
or is there a better way