Closed dzungpv closed 1 year ago
I new to Kotlin, it may cause by getOrThrow() if api failed. But you can add a sample app and rewrite the docs
new to Kotlin, it may cause by getOrThrow() if api failed.
Yes, you're right. You can use .getOrNull()?.run { ... } ?: println("Error")
or something similar to avoid the throw
But you can add a sample app and rewrite the docs.
I know, I'm sorry, I've been super busy in the past months, and now I want to stabilize more the SDK + properly document everything. Hopefully I can start writing documentation and testing half an hour every evening in the upcoming weeks. I'll try and do my best :)
Unluckily, I can't really create a sample android app since it would be too much time-consuming, but I could try to create a simple CLI Kotlin interface.
@DadiBit thanks, how can I call API from java?
@DadiBit thanks, how can I call API from java?
Haven't tested it, but:
import com.openmeteo.api.OpenMeteo
and all other stuff (see wiki examples)I had barely no time to work on the project in the past months, so please let me know if you're facing issues with the import or the usage.
I have some old commits to push, plus a few fixes, features and overall I really need to get some documentation written, I know :sob:
Describe the bug When I call forecast API data, if server down or no internet, app will crash.
To Reproduce
Logs