Closed Aerglonus closed 11 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Thanks! I'm outside rn, will test & publish soon!
Quick question the getProfilePage, should be used on its own and return some data? like this:
const userProfile = await threadsAPI.getProfilePage('https://www.threads.net/@', username);
console.log(userProfile);
getTokenID
not returninguserID
Oh hey, I just ran getToken
with the fixed test code in #225 and confirmed the userID
work correctly! Thanks.
Quick question the getProfilePage, should be used on its own and return some data? like this:
I don't think everyone got this right, but this was actually an internal method added at https://github.com/junhoyeo/threads-api/pull/106/files#diff-a0ae255b36f5cb107ebf68b94c00973a564b5dd5450e3c041cf8b44ecd0233b0R181 (to fetch raw doc as HTML, but cleaned)
cc @yssf-io
I don't think everyone got this right, but this was actually an internal method added at https://github.com/junhoyeo/threads-api/pull/106/files#diff-a0ae255b36f5cb107ebf68b94c00973a564b5dd5450e3c041cf8b44ecd0233b0R181 (to fetch raw doc as HTML, but cleaned)
Think it'll be better to rename getProfilePage
to _getProfileHTML
or something more direct
I'll merge this. Gonna close the issues after releasing next version.
Fixes
Error 429 too many requests when usinggetUserIDFromUsername
passing the authorization header to the request, the issue was coming from thegetProfilePage
which was using Authorization header that was causing to return 404 Not Found and also breaking the other functions that callsgetProfilePage
so this fixes both 429 and 404 erros.217 this was fixed on PR #216
getTokenID not returning userID
188
209
220
The regex was not properly working now it should return the token with the userID
- #148Not related