All URIs are relative to http://localhost:8080
Method | HTTP request | Description |
---|---|---|
getTariffs | GET /cpo/api/2.2.1/tariffs |
ResponseFormatListTariffDto getTariffs(dateFrom, dateTo, offset, limit)
// Import classes:
import com.extrawest.ocpi.cpo.client.invoker.ApiClient;
import com.extrawest.ocpi.cpo.client.invoker.ApiException;
import com.extrawest.ocpi.cpo.client.invoker.Configuration;
import com.extrawest.ocpi.cpo.client.invoker.models.*;
import com.extrawest.ocpi.cpo.client.api.CpoTariffApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
CpoTariffApi apiInstance = new CpoTariffApi(defaultClient);
OffsetDateTime dateFrom = OffsetDateTime.now(); // OffsetDateTime |
OffsetDateTime dateTo = OffsetDateTime.now(); // OffsetDateTime |
Integer offset = 0; // Integer |
Integer limit = 56; // Integer |
try {
ResponseFormatListTariffDto result = apiInstance.getTariffs(dateFrom, dateTo, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CpoTariffApi#getTariffs");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
dateFrom | OffsetDateTime | [optional] | |
dateTo | OffsetDateTime | [optional] | |
offset | Integer | [optional] [default to 0] | |
limit | Integer | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |