|
Comments
|
Top Microsoft .NET Links
3D Introducing Posh-FourSquare
The PowerShell library for FourSquare.com
By: Joe Pruitt
Oct. 5, 2009 03:50 PM
Those who know me, can attest that I'm a early adopter when it comes to social networking systems. The latest one I've been getting into lately is FourSquare.com. FourSquare.com describes itself as 50% friend finder, 30% social city guide, and 20% nightlife game. They include ways to keep up with what your friends are doing as well as offering up some fun challenges to have you explore cities in different ways. Once I've played around with a social networking site for a bit, my next step is to see what kind of API's they have exposed and see if I can build my own app to integrate with the site. It turns out that the FourSquare.com has exposed a public API in their FourSquare-API Google Group. So, as I did with my Posh-Tweet, Posh-Bing, Posh-TwitPic, and Posh-Delicious libraries, I went ahead and wrote a PowerShell library of functions to access the FourSquare APIs. The API is broken down into these categories:
Usage: To use the API's you must first register on FourSquare.com. The username and password you use to create the account will be used in this API with the Set-FourSquare.Credentials method. After setting your credentials, you can call any of the other methods and start updating your status from the comfort of your PowerShell prompt. The following example will register the functions in the current runspace, set the credentials, query the available citites, and then checkin at the Cafe next door for lunch. Microsoft .NET Latest Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week Breaking News from the Wires
|
|||||||||||||||||||||||||||||||||