The PR add new methods for some that do not require authentication and fixes the issues of not retrieving data. #188 and #175
Added
_getUnAuthenticatedHeaders
Reason
This was added because some methods that do not require the header Authorization were failing because of it.
Added
_getDefaultUserDataHeaders
Reason
Simply to pass the getUnAuthenticatedHeaders to methods that do not require authentication like getUserProfilegetThreadsgetThreadsLikers
Added
_getDefaultRepliesHeaders | _requestRepliesQuery
Reason
The motive to add these two were because the referer header to the threads.net/api/graphql endpoint includes the /replies path when is not logged in.
Note :
getProfilePage and getUserIDfromUsername are still bugged
getProfilePage returns 404 Not Found html as response
getUserIDFromUsername returns Data: ' ' with error 429 too many requests when running by itself but when it works fine when running through getCurrentUserID
The PR add new methods for some that do not require authentication and fixes the issues of not retrieving data. #188 and #175
Added
Reason This was added because some methods that do not require the header
Authorization
were failing because of it.Added
Reason
Simply to pass the
getUnAuthenticatedHeaders
to methods that do not require authentication likegetUserProfile
getThreads
getThreadsLikers
Added
Reason
The motive to add these two were because the referer header to the
threads.net/api/graphql
endpoint includes the/replies
path when is not logged in.Note :