All posts tagged: Twitter

Listen to Twitter messages using Speech API and PowerShell

First of all, Happy new year 2010 to all my blog readers..! Text-to-speech in PowerShell isn’t a new thing. I was experimenting a few things and came across this. Also, this post is a nice and fun way to start a brand new year while learning something at the same time. Let us dive in to this now.. Windows provides us access to Speech API for creating text-to-speech applications. This is a COM object and can pretty well be accessed using PowerShell. Twitter — as all you know — already provides a API to do various things. This post just combines both these aspects. First, let us create a web client object and assign twitter credentials $webClient = New-Object -ComObject System.Net.WebClient $webClient.Credentials = Get-Credential Now — if required, assign proxy credentials too for proxy authentication $webClient.Proxy.Credentials = Get-Credential It is time to setup the Twitter API to access your home timeline. This API usually returns 20 recent tweets. However, for the sake of this simple experiment, let us restrict the number of tweets to just one using the …

Send Twitter updates with Geo tags using PowerShell

Update: I fixed an issue with $webClient.UploadString usage and added ByPass-Proxy to make sure that this script works with proxy authentication. Sending Twitter updates using PowerShell isn’t a new thing. There is a Twitter Powerpack too. Twitter recently introduced geotags feature. Here is how they describe this feature. Twitter’s Geotagging feature allows users who opt-in to the service to selectively Geotag their tweets with their exact location and provide more context to users about their surroundings. This great new functionality allows you to join into a local conversation and annotate the world around you as you travel from one place to another. But geotagging isn’t available when you Tweet using Twitter’s web interface. You need to use a client software that supports Geotagging API when sending status updates. I use TweetDeck as my Twitter client. However, TweetDeck does not yet support Geo tags while sending tweets. It can — however — recognize if incoming tweets have the geotags. Now, in this post, I will show you how to combine Google Geo-coding API with Twitter API to send Twitter …