Hi,
In preparation of building an Android app using the
Glitch SDK/API, I've created an API wrapper.
What this wrapper does is deserialize the API response into fully typed 'GlitchResponse' objects. It also contains a couple of 'GlitchRequest' creation methods that will simplify creating a particular 'GlitchRequest'.
Example usage
- Doing a request
GlitchRequest request = Players.createFullInfoRequest(glitchApi, playerTsid, viewerTsid);
request.execute(this);
- Parsing the response
Gson gson = new Gson();
FullInfoResponse info = gson.fromJson(request.response, FullInfoResponse.class)
You can get a full overview on the
glitch-api-wrapper-android repo at Github.
I hope this will be of help for other developers hoping to get started on building a Glitch related Android app.
If you happen to run into an problem with my API wrapper, please open an issue on Github.
Cheers,
Wijnand
Posted 61 days ago by
Wijnand

|
Permalink