Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/griffio/robin-powered-api
- Owner: griffio
- Created: 2015-03-08T19:19:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T20:45:11.000Z (over 7 years ago)
- Last Synced: 2024-04-16T18:27:02.970Z (7 months ago)
- Topics: okhttp3, retrofit2
- Language: Java
- Homepage:
- Size: 91.8 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
}