List of usage examples for twitter4j.conf Configuration getOAuthAccessToken
@Override String getOAuthAccessToken();
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 av a 2 s . c om*/ */ 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(); }