Following this tutorial I manage to get token. How now I use this to token to get tweets from user, for example? Where should I place this token variable and make API call with retrofit?
twitterApi.postCredentials("client_credentials").enqueue(new Callback<OAuthToken>() {
@Override
public void onResponse(Call<OAuthToken> call, Response<OAuthToken> response) {
token = response.body(); // <---- my token
}
@Override
public void onFailure(Call<OAuthToken> call, Throwable t) {
// fail
}});