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 133 forks source link

get thread information #23

Closed farizrifqi closed 1 year ago

farizrifqi commented 1 year ago

first time writing typescript and structured code. Code aint fully tested since it even takes almost an hour for me to start using ts. im sorry.

just adding some based on my own code.

added 2 types

junhoyeo commented 1 year ago

@farizrifqi Thank you so much for the getPostIDfromURL function! For the getThread and getThreadReplies methods, I decided to merge those two into one, since they're using the same API calls — users can destructure only the properties they want from the result. https://github.com/junhoyeo/threads-api/commit/e8c9527459ac4b4f6fdd64ed3a0164892e491dfc