koenrh / delete-tweets

Delete tweets from your timeline.
ISC License
792 stars 107 forks source link

Exception: The twitter.Api instance must be authenticated. #79

Closed jorvlan closed 4 years ago

jorvlan commented 4 years ago

When trying: delete-tweets --until 2014-12-12 tweet.js I get the following output..

delete tweet 150703127539093504 Exception: The twitter.Api instance must be authenticated.

delete tweet 150599558748061696 Exception: The twitter.Api instance must be authenticated.

delete tweet 150534176360247296 Exception: The twitter.Api instance must be authenticated.

delete tweet 150415891975254016 Exception: The twitter.Api instance must be authenticated.

delete tweet 150127716870529024 Exception: The twitter.Api instance must be authenticated.

delete tweet 149988523955597312 Exception: The twitter.Api instance must be authenticated.

delete tweet 149914532029005825 Exception: The twitter.Api instance must be authenticated.

delete tweet 149914294027436032 Exception: The twitter.Api instance must be authenticated.

delete tweet 149904635010891776 Exception: The twitter.Api instance must be authenticated.

Number of deleted tweets: 2921

Does this mean that my app request is not approved yet? (if yes, Any idea how long this might take?)

I also asked this question on stackoverflow, if you want to read the discussion there: https://stackoverflow.com/questions/60255564/delete-tweets-twitter?noredirect=1#comment106582168_60255564

jorvlan commented 4 years ago

Issue is solved, the problem was that I wrote the keys as a string input

Example keys: export TWITTER_CONSUMER_KEY="4832823" export TWITTER_CONSUMER_SECRET="584883" export TWITTER_ACCESS_TOKEN="3dsl3939" export TWITTER_ACCESS_TOKEN_SECRET="393939dk"

I will now close this case.