Example usage for twitter4j.conf Configuration getRestBaseURL

List of usage examples for twitter4j.conf Configuration getRestBaseURL

Introduction

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

Prototype

String getRestBaseURL();

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