All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.manywho.sdk.services.providers.RunClientProvider Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
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