Search in sources :

Example 1 with LoriotService

use of lora.ns.loriot.rest.LoriotService in project cumulocity-lora by SoftwareAG.

the class LoriotConnector method init.

@Override
protected void init() {
    OkHttpClient okHttpClient = new OkHttpClient.Builder().addInterceptor(new APIKeyInterceptor()).build();
    Retrofit retrofit = new Retrofit.Builder().client(okHttpClient).baseUrl(getProperties().getProperty("url")).addConverterFactory(JacksonConverterFactory.create()).build();
    loriotService = retrofit.create(LoriotService.class);
}
Also used : Retrofit(retrofit2.Retrofit) LoriotService(lora.ns.loriot.rest.LoriotService) OkHttpClient(okhttp3.OkHttpClient)

Aggregations

LoriotService (lora.ns.loriot.rest.LoriotService)1 OkHttpClient (okhttp3.OkHttpClient)1 Retrofit (retrofit2.Retrofit)1