Giter Site home page Giter Site logo

drinks-on-me-android's Introduction

DrinksOnMe is an app built on top of Venmo that demonstrates a cool app you can build using Venmo and Foursquare.
It allows you to buy drinks for your friends or for people who are checked in to the same place you are! Note that the only people at your location who will show up are those that have their Venmo accounts linked to their foursquare accounts, and your friends.

If you are interested in building an app that uses the Venmo SDK like DrinksOnMe does, then be sure to check out the Android SDK documentation: https://github.com/venmo/venmo-android-sdk

Note that the Foursquare and Venmo secret keys have been removed from the DrinksOnMe app, so the app will not work until you enter these.

To get these keys, first you will need to register your app with Venmo at https://venmo.com/account/app/new and with Foursquare at https://foursquare.com/oauth/register.

From Venmo you will get a client id and a secret key. The client id needs to be entered in the manifest file in place of 9999 (near the bottom, where you see venmo9999abcd), and in utils/VenmoApi.java, for the variable "myAppId". It also needs to be entered in utils/FoursquareManager.java, on line 351, in the variable "app_id". The secret key needs to be entered in two places: the variable SECRET at the top of Utils/VenmoAPI.java, and the variable app_secret in URLActivity.java.

From Foursquare you will get a callback_url and a client_id. These both need to be entered at the top of FoursquareOauthActivity.java (in CALLBACK_URL and CLIENT_ID, respectively). The client_id also needs to be added at the top of VenmoAPI.java (the variable CLIENT_ID).

After doing this, DrinksOnMe should work! Note that the app is kind of slow, especially if you have many foursquare friends. A known bug is that when you first log in through foursquare, you only see your friends tab (not the location tab). But when you close and re-open the app, then the @location people appear.

drinks-on-me-android's People

Watchers

 avatar

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.