Not able to get List of followers and frinds in Twitter Rest Api

restapi
android
java
following

#1

i am trying to get followers list and freinds list from (/1.1/followers/list.json) this api , but it returning no data to me , if any one have solution please tell me what the reason its urgent for me .

thanks
dharmaniz.vipulgarg@gmail.com


#2

Can you share a code snippet that demonstrates what you’ve tried, and any error or output you are seeing?


#3

hello any i have used this code

    MyTwitterApiClient apiclients = new MyTwitterApiClient(session);
    Call<JSONObject> call = apiclients.getFollowersIds().show(session.getUserId(), null, true, true, 100);
    call.enqueue(new Callback<JSONObject>() {
        @Override
        public void success(Result<JSONObject> result) {
            Log.e(TAG, "onResponse: " + result.data.toString());
            Log.e(TAG, "onResponse: " + result.response);
        }
        @Override
        public void failure(TwitterException exception) {
            exception.printStackTrace();
        }
    });

#4

interface GetFollowersIds {
@GET("/1.1/followers/list.json")
Call show(@Query(“user_id”) Long userId, @Query(“screen_name”) String
var, @Query(“skip_status”) Boolean var1, @Query(“include_user_entities”) Boolean var2, @Query(“count”) Integer var3);
}


#5

I am getitng zero no of followers every time.


#6

@andypiper Please help me out in this, i have given all the permissions in twitter dashboard of the project , iam getiing my name , followers count but not able to get the list as it shows 0 data in followers list.


#7

hi have you find any solution @andypiper @TwitterTutor @twitterhelp