kbravh / tweet-to-markdown

A command line tool to convert Tweets to Markdown.
MIT License
159 stars 9 forks source link

API Does Not Seem to Be Working #6

Closed pwdelbloomboard closed 2 years ago

pwdelbloomboard commented 2 years ago

Greetings! Thanks for building this.

I have attempted to use this tool on both zsh and bash with no results.

When running the command:

ttm --bearer <key> https://twitter.com/JoshWComeau/status/1213870628895428611

I'm wondering if the API may take a while to be activated?

kbravh commented 2 years ago

Hi @pwdelbloomboard! So I've done a quick test and I've run into the problem myself. The issue is that the TTM api key has the special character >, which means the key needs to be wrapped in quotes:

ttm --bearer "<key>" https://twitter.com/JoshWComeau/status/1213870628895428611

That was a misstep on my part, and I've updated the readme to include the quotes.

When the terminal reads the >, it interrupts the flow and treats your api key as an output file name. So if you check the directory you were in, you'll probably find a file with the name of your key and the text "Unauthorized" inside.

Please let me know if that helps!

pwdelbloomboard commented 2 years ago

Yes, it works now, thanks for updating the documentation.

I would also suggest specifying that the must include the TTM> as well as the ensuing alphanumerics.