Git Product home page Git Product logo

untappd.net's Introduction

Master AppVeyor Build (Windows): Build status

Master Travis-CI (Linux): Build Status

Master Circle-CI (Linux): Circle CI

Master CodeShip (Linux): Codeship Status for tparnell8/Untappd.Net

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.

Building via command line

If you wish to build via command line install ruby, and ruby gems. Open up a console in the root directory of this project, and then run the following:

  • gem install rake
  • gem install bundle
  • bundle
  • rake preflight

Linux Boxes

If you are on a linux box, please make sure you have mono and mono-devel in your path. Easiest way to install on ubuntu is to run sudo apt-get install mono-complete

My PR is broken, it works in VS!

if your pull request is broken either one of two things is happening.

  1. Your changes are not mono compatible, which prevent linux users from using your changes. This will only happen if travis ci says your build is broken, but appveyor does not.
  2. You have added gendarme violations. You can run gendarme locally by running rake preflight from your console.

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");
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");
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:

untappd.net's People

Contributors

gitter-badger avatar rodkings avatar terribledev avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

untappd.net's Issues

Error adding reference to Untappd.Net.dll

Hi, do you have a simple sample app that utilizes Untappd.Net? I compiled your wrapper fine but when trying to add a reference to Untappd.Net.dll I get the error:

Microsoft Visual Studio

A reference to 'bin\Debug\Untappd.Net.dll' could not be added. The project targets '.NETCore' while the file reference targets '.NETFramework'. This is not a supported scenario.

Is that because I am targeting a UWP project when I should instead be using a WinForm/.NetFramework project? I am using Visual Studio 2017.

Thanks,
Rick

Add Actions

We should add the various actions. Requires #2 to be done.

New Response classes

Hey @tparnell8, is there any fast way to generate those response classes with Json properties?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.