com.manywho.sdk.services.providers.RunClientProvider Maven / Gradle / Ivy
package com.manywho.sdk.services.providers;
import com.google.inject.Provider;
import com.manywho.sdk.api.jackson.ObjectMapperFactory;
import com.manywho.sdk.client.run.RunClient;
import retrofit2.Retrofit;
import retrofit2.converter.jackson.JacksonConverterFactory;
public class RunClientProvider implements Provider {
@Override
public RunClient get() {
Retrofit retrofit = new Retrofit.Builder()
.addConverterFactory(JacksonConverterFactory.create(ObjectMapperFactory.create()))
.baseUrl("https://flow.manywho.com")
.build();
return retrofit.create(RunClient.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy