<commit_before>FoursquareAPI
=============
Foursquare API .NET wrapper is written in C# and provides quick access to Foursquare API v2. Supports oAuth protocol. Now Venues and Users endpoints are almost fully implemented. All the other endpoints implementations will be published as they are tested properly, it's the question of the nearest future. 

Do not hesitate and look for code examples in SamplesProject which is a part of the solution.

Installation
==============
To install FoursquareAPI with Nuget, run the following command in the Package Manager Console
```
PM> Install-Package FoursquareAPI
```

Code examples
==============
To create an instance of FoursquareApi:
```
var clientId = "Your_clientId";
var clientSecret = "Your_clientSecret";
var redirectUri = "Your_RedirectUri";
var accessToken = "Your_accessToken";
var foursquare = new Foursquare(clientId,clientSecret, redirectUri,accessToken);//if the user is authenticated
OR
var foursquare = new Foursquare(clientId,clientSecret);//if the user is not authenticated
```

After creating an instance different API methods are available, like below:
```
var venueDetail = foursquare.Venues.VenueDetail("4c263af6a852c9287537e66c");
var trendingVenues = foursquare.Venues.TrendingVenues(40.7,-74);
var userDetail = foursquare.Users.User("userId");
var userPhotos = foursquare.Users.UserPhotos("userId");
```

Authentication
==============
Start by registering your app to obtain its Foursquare API credentials.
Then send a request to foursquare authentication service which will return a code to your Redirect URI:
```
var foursquare = new Foursquare(clientId, clientSecret, redirectUri, null);
foursquare.Authenticate();
```
Finally you should use the code you received earlier to get access token which is used for authentication-sensitive features:
```
var accessToken = foursquare.GetAccessToken("code");
``` 
 
Save this access token for this user in your database.


Author
========
<a href="https://twitter.com/federer_15" target=_blank title="<NAME>">@federer_15</a>
<a href="http://smorodinnikov.com" target=_blank title="<NAME>">My Blog</a><commit_msg>README fix<commit_after>FoursquareAPI
=============
Foursquare API .NET wrapper is written in C# and provides quick access to Foursquare API v2. Supports oAuth protocol. Now Venues and Users endpoints are almost fully implemented. All the other endpoints implementations will be published as they are tested properly, it's the question of the nearest future. 

Do not hesitate and look for code examples in SamplesProject which is a part of the solution.

Installation
==============
To install FoursquareAPI with Nuget, run the following command in the Package Manager Console
```
PM> Install-Package FoursquareAPI
```

Code examples
==============
To create an instance of FoursquareApi:
```
var clientId = "Your_clientId";
var clientSecret = "Your_clientSecret";
var redirectUri = "Your_RedirectUri";
var accessToken = "Your_accessToken";
var foursquare = new Foursquare(clientId,clientSecret, redirectUri,accessToken);//if the user is authenticated
OR
var foursquare = new Foursquare(clientId,clientSecret);//if the user is not authenticated
```

After creating an instance different API methods are available, like below:
```
var venueDetail = foursquare.Venues.VenueDetail("4c263af6a852c9287537e66c");
var trendingVenues = foursquare.Venues.TrendingVenues(40.7,-74);
var userDetail = foursquare.Users.User("userId");
var userPhotos = foursquare.Users.UserPhotos("userId");
```

Authentication
==============
Start by registering your app to obtain its Foursquare API credentials.
Then send a request to foursquare authentication service which will return a code to your Redirect URI:
```
var foursquare = new Foursquare(clientId, clientSecret, redirectUri, null);
foursquare.Authenticate();
```
Finally you should use the code you received earlier to get access token which is used for authentication-sensitive features:
```
var accessToken = foursquare.GetAccessToken("code");
``` 
 
Save this access token for this user in your database.


Author
========
<a href="https://twitter.com/federer_15" target=_blank title="My Twitter">@federer_15</a><br/>
<a href="http://smorodinnikov.com" target=_blank title="<NAME>">My Blog</a>
{'fraction_non_alphanumeric': 0.11145002346316284, 'fraction_numerical': 0.012670107930549039, 'mean_word_length': 6.12876254180602, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4057026', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1134, 'n_words': 451}