Coder Social home page Coder Social logo

oauth-sample-android's Introduction

##Introduction

The goal of this sample project is to show you how you can do OAuth2 from an Android application using the Google OAuth Client Library for Java.

The sample application allows you to access data from the following OAuth2 providers

  • Foursquare (using the Google OAuth Client Library for Java to access a non-Google API).
  • Google Tasks (using the Google OAuth Client Library for Java to access this Google API).
  • Google Plus (using Google APIs Client Library for Java, offering a higher level abstraction for interacting with Google APIs)

##Project setup

This project is built using the m2e-android plugin to handle its external dependencies.

When using Eclipse ADT, it assumes that the following components are installed :

  • Eclipse Market Client
  • m2e-android plugin

If you don't have the Eclipse Marker Client installed, you can install it by clicking on

Help → Install new Software → Switch to the Juno Repository → General Purpose Tools → Marketplace Client

Once you have the Eclipse Market Client installed, you can proceed to install the m2e-android plugin

Help -> Eclipse Marketplace... and search for "android m2e".

More instructions can be found on the m2e-android plugin site.

Project dependences

This project depends on the following libraries. (automatically pulled in when using the m2e-android plugin).

  • commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
  • org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar
  • org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
  • commons-codec/commons-codec/1.3/commons-codec-1.3.jar
  • com/google/apis/google-api-services-plus/v1-rev72-1.15.0-rc/google-api-services-plus-v1-rev72-1.15.0-rc.jar
  • com/google/api-client/google-api-client/1.15.0-rc/google-api-client-1.15.0-rc.jar
  • com/google/oauth-client/google-oauth-client/1.15.0-rc/google-oauth-client-1.15.0-rc.jar
  • com/google/http-client/google-http-client-jackson2/1.15.0-rc/google-http-client-jackson2-1.15.0-rc.jar
  • com/google/http-client/google-http-client/1.15.0-rc/google-http-client-1.15.0-rc.jar
  • com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
  • com/fasterxml/jackson/core/jackson-core/2.1.3/jackson-core-2.1.3.jar

References

oauth-sample-android's People

Contributors

kill-9-bugs avatar

Watchers

James Cloos avatar  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.