Tommy Parnell d5671ff5a9 Merge pull request #35 from tparnell8/failFast
Handle Exceptions better, refactor things
2015-05-11 19:12:12 -04:00
2015-04-21 23:25:38 -04:00
2015-05-11 18:57:52 -04:00
2015-05-11 18:55:31 -04:00
2015-05-11 18:56:27 -04:00
2015-03-28 10:00:55 -04:00
2015-04-08 18:01:20 -04:00
2015-05-02 21:04:43 -04:00
2015-04-21 23:08:21 -04:00

Master: Build status Release:Build status Code Coverage: Coverage Status

Kanban Stories in Ready

Tips: Shameless tip badge tips Chat: Join the chat at https://gitter.im/tparnell8/Untappd.Net

Untappd.Net

This is a c# wrapper around the Untappd API. This can be downloaded via Nuget, or the backup feed.

API Coverage

Current both Authenticated and Unauthenticated requests.

More info: https://untappd.com/api/docs

For Authenticated requests, you should already have a valid token, provided via OAuth authentication.

Such authentication can be achieved using Owin OAuth Providers for ASP.NET Web Applications, which already have an Untappd provider.

More info: https://github.com/RockstarLabs/OwinOAuthProviders

How do I use?

  • Request an API Key
  • You should be able to make a repository and call the get method with the thing you are requesting.

Note: Additional parameters can be passed into the Get Method with an IDictionary.


var ts = new UnAuthenticatedUntappdCredentials("key", "secret");
var t = new Repository().Get<UserDistinctBeers>(ts, "tparnell");
var t = new Repository().Get<BeerInfo>(ts, "BeerIdHere");

For Authenticated requests:


var ts = new AuthenticatedUntappdCredentials("token", "key", "secret");
var t = new Repository().Get<ActivityFeed>(ts);

For Actions (usually post requests). Note: Actions return a dynamic object. Usually these responses are not needed, and you should still be able to use the dynamic object's data. If strong typed returns is required feel free to file an issue. However we don't predict people will really need to care about the returns of these actions.


var ts = new AuthenticatedUntappdCredentials("token", "key", "secret");
var checkin = new CheckIn("-5", "EST", 1044097) { Shout = "Awesome Brew", Rating = 4 };
var response = repository.Post(ts, checkin);

Contributing

  • Everyone is welcome to contribute!
  • If you are looking for something to do, look at the issues.
  • There are no special instructions, submit pull requests against the master branch.
  • Releases to nuget occur on successful release branch builds.
  • The only reason I do not publish on master, is because sometimes commits can just contain readme files, or unit tests changes that do not affect the nuget package

Current contributors:

Description
C# Wrapper over untappd api
Readme MIT 486 KiB
Languages
C# 98%
Ruby 1.9%
Puppet 0.1%