public class FioClient extends Object
| Constructor and Description |
|---|
FioClient(String apiKey) |
FioClient(String apiKey,
JsonConverter jsonConverter) |
FioClient(String apiKey,
JsonConverter jsonConverter,
okhttp3.OkHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
apiCalls()
The number of API calls made for today.
|
FioResponse |
forecastCall(FioRequest request)
Sends a forecast call to forecast.io.
|
String |
responseTime()
The server-side response time of the last request.
|
public FioClient(String apiKey)
public FioClient(String apiKey, JsonConverter jsonConverter)
public FioClient(String apiKey, JsonConverter jsonConverter, okhttp3.OkHttpClient httpClient)
public FioResponse forecastCall(FioRequest request) throws IOException
Request - objectIOExceptionpublic Integer apiCalls()
public String responseTime()
Copyright © 2016. All rights reserved.