List of usage examples for twitter4j.conf Configuration getRestBaseURL
String getRestBaseURL();
From source file:com.github.moko256.mastodon.MastodonTwitterImpl.java
License:Apache License
/** * @param configuration Configuration (getRestBaseURL expects instance url) * @param builder OkHttpClient.Builder//from ww w . j ava 2 s.co m */ public MastodonTwitterImpl(Configuration configuration, long userId, OkHttpClient.Builder builder) { this.configuration = configuration; this.userId = userId; client = new MastodonClient.Builder(configuration.getRestBaseURL(), builder, gson) .accessToken(configuration.getOAuthAccessToken()).build(); }