FourSquare SDK for .NET
Latest commit 91ec404 Jul 18, 2016 @TICLAB committed on GitHub Merge pull request #20 from PetroProts/master
Mapping update


FourSquare SDK for .NET

The SharpSquare .NET library provides a quick access to the FourSquare API v2. The library is built in C# and can therefore be used by all languages the .NET environment supports.

Beacuse of clean natural object oriented approach, the library is easy to use. SharpSquare implements almost all the features offered by the FourSquare API and fully supports the oAuth protocol.

Each API call is mapped to a one-to-one method and each FourSquare entity is mapped to a class.

Code examples

using FourSquare.SharpSquare.Core;
using FourSquare.SharpSquare.Entities;

string clientId = "CLIENT_ID";
string clientSecret = "CLIEND_SECRET";
string redirectUri = "REDIRECT_URI";
SharpSquare sharpSquare = new SharpSquare(clientId, clientSecret);


if (Request["code"] != null)
    sharpSquare.GetAccessToken(redirectUri, Request["code"]);
    // Here, you can do something
    HyperLink.NavigateUrl = sharpSquare.GetAuthenticateUrl(redirectUri);

Create a check-in

Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters.Add("venueId", "VENUE_ID");
parameters.Add("broadcast", "public");
Checkin checkin = sharpSquare.AddCheckin(parameters);