retrofit-oauth 0

A Retrofit + Google OAuth demo.

2 years after

Retrofit OAuth

A small demo how to use Retrofit to retrieve an OAuth2 access token from a Google account and use it to read the user's Google profile.

Run the demo

  1. create a new project: console.developers.google.com, and go to
    • APIs & auth
      • Credentials
        • Create New Client ID
        • Installed application and Other
        • Create Client ID
        • copy the Client ID and Client secret
      • APIs
        • enable Google+ API
  2. create a file called local.properties in the root of this project and add the keys client_id and client_secret to it (and the corresponding values from step 1, of course)
  3. run the main class by executing mvn exec:exec, and follow the instructions on the console

Related Repositories

awesome-php

awesome-php

A curated list of amazingly awesome PHP libraries, resources and shiny things. ...

refit

refit

The automatic type-safe REST library for Xamarin and .NET ...

awesome-php-zh_CN

awesome-php-zh_CN

一个PHP资源列表,内容包括:库、框架、模板、安全、代码分析、日志、第三方库、配置工具、Web 工具、书籍、电子书、经典博文等等 ...

Heimdall.droid

Heimdall.droid

Easy to use OAuth 2 library for Android by trivago. ...

RxSocialConnect-Android

RxSocialConnect-Android

OAuth RxJava extension for Android. ...


Top Contributors

bkiers