Comments
Patrick Collands wrote: collands (AT) gmail com I'd be very grateful for an invitation. Thank you.

SYS-CON.TV
Top Microsoft .NET Links


Introducing Posh-FourSquare
The PowerShell library for FourSquare.com

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:

Credentials

  • Get-FourSquare.Credentials - Get the credentials for your FourSquare.com account.
  • Set-FourSquare.Credentials - Set the credentials for your FourSquare.com account.

GEO Methods

  • Get-FourSquare.Citites - Returns a list of currently active cities.
  • Check-FourSquare.City - When given a lat/long, returns the closest foursquare city.
  • Switch-FourSquare.City - When given a valid foursquare cityid, changes the user's default city.
  • Get-FourSquare.Checkins - Returns a list of recent checkins from friends.
  • New-FourSquare.Checkin - Allows you to check-in to a place.
  • Get-FourSquare.History - Returns a history of checkins for the authenticated user (across all cities).

User Methods

  • Get-FourSquare.User - Returns profile information (badges, etc) for a given user.
  • Get-FourSquare.Friends - Returns a list of the authenticated user's friends.
  • Get-FourSquare.Venues - Returns a list of venues near the area specified or that match the search term.
  • Get-FourSquare.Venue - Returns venue data, including mayorship, tips/to-dos and tags
  • Add-FourSquare.Venue - Allows you to add a new venue.

Tip Methods

  • Get-FourSquare.Tips - Returns a list of tips near the area specified.
  • Add-FourSquare.Tip - Allows you to add a new tip or to-do at a venue.

Other Methods

  • Get-FourSquare.Status - Returns the string "ok".

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.

Read the original blog entry...

About Joe Pruitt
Joe Pruitt is a Sr. Strategic Architect at F5 Networks working with Network and Software Architects to allow them to build network intelligence into their applications.

Microsoft .NET Latest Stories
You need not to opt for recovery service, if your hard drive is physically intact and working properly. If all the hard drive internals are working properly, you would be able to start your system and access data from it. However, the the internal components of your computer hard drive...
The Microsoft-Yahoo deal got approved by regulators in Canada and Australia. The Justice Department and the European Commission are reviewing the plan.
Mozilla’s revenues – that’s the Mozilla Foundation and all subsidiaries – did $78.6 million last year, up 5%. As a gauge, its 2007 over 2006 was up 12%. Most of the money comes from Google of course though now it has its own browser, plus Yahoo, Amazon and eBay. Its deal with Google ru...
Corel, the Canadian company that acquired the once great WordPerfect and Quattro Pro from Novell intending to take on Microsoft, is going private again. Vector Capital, the private equity house that owns over 68% of the company is offering $4 a share cash, nearly a 28% premium, for the...
Windows 7 has sold at an unprecedented rate in the few weeks it’s been out, double any previous version of the operating system according to what Microsoft CEO Steve Ballmer told the company’s annual stockholders meeting the other day. He was reportedly counting both boxed and OEM copi...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers

ADS BY GOOGLE