TwitterCore

The TwitterCore Kit provides Login with Twitter and the Twitter API.

Set Up Kit

Note

Skip this section if you installed Twitter Kit using the Twitter Kit installation instructions.

Add the TwitterCore Kit to your build.gradle dependencies. View the TwitterCore changelog for the latest version number.

dependencies {
    compile('com.twitter.sdk.android:twitter-core:2.3.0@aar') {
        transitive = true;
    }
}

and be sure the TwitterCore Kit is included in your application’s Fabric.with() call.

import io.fabric.sdk.android.Fabric;
import com.twitter.sdk.android.core.TwitterCore;
import com.twitter.sdk.android.core.TwitterAuthConfig;
...

@Override
public void onCreate() {
    super.onCreate();

    TwitterAuthConfig authConfig =  new TwitterAuthConfig("consumerKey", "consumerSecret");
    Fabric.with(this, new TwitterCore(authConfig));
}