Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/griffio/robin-powered-api

https://robinpowered.com/ api with Retrofit2, OkHttp3, Gson and AutoValue
https://github.com/griffio/robin-powered-api

okhttp3 retrofit2

Last synced: 8 days ago
JSON representation

https://robinpowered.com/ api with Retrofit2, OkHttp3, Gson and AutoValue

Awesome Lists containing this project

README

        

## Robin Powered Api with Retrofit, OkHttp, Gson and AutoValue

updated for [Retrofit2 v2.2.0](https://github.com/square/retrofit)

updated for [OkHttp3 v3.7.0](https://github.com/square/okhttp)

---

When using Intellij 2016 or higher with gradle import, **uncheck** "create separate module per source set" as project needs Autovalue sources on classpath.

---

API token generation located in account integrations: https://dashboard.robinpowered.com/ax/settings/integrations

### Example with TypeAdapterFactory, TypeAdapters, Deserialisers

Robin Powered api uses a "data" element enclosure to wrap resource responses - TypeAdapterFactory can be used to unwrap.

~~~json
{
"data": [
{}
],
"meta": {},
"paging": {
"page": 1,
"per_page": 10
}
}