- list - Get Following (v3)
Get following list of a user. Page size 10-100; use cursor for more pages. $0.10/1000 users.
package hello.world;
import io.twexapi.sdk.XapiScraper;
import io.twexapi.sdk.models.components.FollowersFollowingV3Query;
import io.twexapi.sdk.models.errors.HTTPValidationError;
import io.twexapi.sdk.models.operations.UsersFollowingListResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws HTTPValidationError, Exception {
XapiScraper sdk = XapiScraper.builder()
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();
FollowersFollowingV3Query req = FollowersFollowingV3Query.builder()
.username("elonmusk")
.count(20L)
.cursor("1870681402093130182|2076960004551737340")
.build();
UsersFollowingListResponse res = sdk.users().following().list()
.request(req)
.call();
if (res.verifiedFollowersResponse().isPresent()) {
System.out.println(res.verifiedFollowersResponse().get());
}
}
}
UsersFollowingListResponse
| Error Type |
Status Code |
Content Type |
| models/errors/HTTPValidationError |
422 |
application/json |
| models/errors/APIException |
4XX, 5XX |
*/* |