Send a Tweet from PowerShell

Posted by in PowerShell

While I chose to keep this article here for archiving, Please note that this doesn’t work anymore. Twitter API has since changed and what used to work, doesn’t anymore. I was reading Shay’s article on how to send direct messages on twitter using PowerShell when I couldn’t resist but find a way to send normal tweets from PowerShell. While trying to do that, I also incorporated security so that your transmission is secure and so is your input. Here’s the code: function Send-Tweet($Message,$UserName) { if ($Message -eq $null) {$Message =…read more