junhoyeo / threads-api

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

Add option to pass in httpsAgent as an option for calling Axios #64

Closed 0Xero7 closed 1 year ago

0Xero7 commented 1 year ago

Adding a way to use http(s)Agent as well while using Axios.

Might be useful when using proxies to call the underlying APIs.

jaredwa commented 1 year ago

Hey - I'm probably being dense here, but I call

id = await threadsAPI.getUserIDfromUsername(handle, { baseURL: proxyString}) - this should prepend, right? I still keep getting 429s so I don't know if it's the proxy or my code.

Proxy string is one of those: https:api.proxyiuse.com/?options=123&url= things.