iteratehq / iterate-android

Iterate Android SDK
MIT License
3 stars 1 forks source link

Create IterateApi to handle API request #15

Closed endruuu closed 2 years ago

endruuu commented 3 years ago

Normally we use Retrofit or Volley library for API call. However, in this PR we try to use the built-in classes to do that. We added one more library called coroutines, which is used to handle the asynchronous operation.

There are some reasons for the error to occur:

Currently, all of the above errors are just thrown as Exception. We don't differentiate them by creating some custom Exception classes because afaik, there is still no use case for that.