junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.59k stars 134 forks source link

can I post to threads using only theads id #207

Closed swarajbachu closed 1 year ago

swarajbachu commented 1 year ago

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

swarajbachu commented 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?

swarajbachu commented 1 year ago

i found the answer