Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
486 stars 46 forks source link

rettiwt.user.details('<username>') seem to require authentication #591

Open improwise opened 3 months ago

improwise commented 3 months ago

rettiwt.user.details('') is listed as being able to use as Guest, but when trying to do so, you will get an auth error.

    if (!Groups_1.allowGuestAuthentication.includes(resource) && this.isAuthenticated == false) {
        throw new Error(Api_1.EApiErrors.RESOURCE_NOT_ALLOWED);

rettiwt.tweet.details on the other hand will work without authentication it seems.

Rishikant181 commented 3 months ago

Getting user details by using username works without authentication, while getting user details by using id requires authentication.

I didn't clarify it in the README. Will make changes to it asap.

improwise commented 3 months ago

Thanks.