private void loadData(){
GovDataApiService govDataApiService = ApiServices.getGovDataApiService();
govDataApiService.getPm25Readings("YOUR_API_KEY_HERE").enqueue(new Callback<Pm25Response>() {
@Override
public void onResponse(Call<Pm25Response> call, Response<Pm25Response> response) {
Log.d(TAG, response.toString());
Pm25Response r = response.body(); //Data are here.
}
@Override
public void onFailure(Call<Pm25Response> call, Throwable t) {
Log.e(TAG, t.toString());
}
});
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Android Library for Singapore OpenData API
License
seventhmoon/SingaporeOpenData
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Android Library for Singapore OpenData API
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published