this project create for Retrofit Tutorial, fake Twitter client with these feature :
- user can post new tweet
- user can edit or delete tweet
- custom gson converter
- custom error handling
- sign up / sign in with email address
- refresh token when access token expired
- update user profile
- upload image user
- search in tweets by feel
1- the backend deploy with Node.js
, install Node.js then clone this repo and checkout related branch, remember install Node.js Module
via npm
$ git clone https://github.com/atahani/rest-api-sample
$ cd rest-api-sample
$ git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs
$ git checkout simple_rest_api
$ npm install
$ node server.js
2 - repo contain different branches in multiple steps, so you should clone this repo and checkout related branch
$ git clone https://github.com/atahani/retrofit-sample
$ cd retrofit-sample
$ git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs
$ git checkout 01_configure_project
3- set the REST_API_BASE_URL
, CLIENT_ID
and CLIENT_KEY
values inside ClientConfigs.java
class
NOTE: this application just create to demonstrate how we can use from Retrofit to talk with REST API