Example usage for twitter4j.conf Configuration getOAuthAccessToken

List of usage examples for twitter4j.conf Configuration getOAuthAccessToken

Introduction

In this page you can find the example usage for twitter4j.conf Configuration getOAuthAccessToken.

Prototype

@Override
    String getOAuthAccessToken();

Source Link

Usage

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();
}