FollowRequests

class FollowRequests(val client: ApiClient) : Endpoint

Collection of api endpoints related to follow requests.

See also

Parameters

client

Current ApiClient instance.

Constructors

Link copied to clipboard
fun FollowRequests(client: ApiClient)

Creates new FollowRequests endpoint instance.

Properties

Link copied to clipboard
open override val client: ApiClient

Extensions

Link copied to clipboard
fun FollowRequests.acceptByScreenName(screenName: String, vararg options: Option): JsonObjectApiAction<User>

Accepts the follow request from specific user.

Link copied to clipboard
fun FollowRequests.acceptByUserId(userId: Long, vararg options: Option): JsonObjectApiAction<User>

Accepts the follow request from specific user.

Link copied to clipboard

Shorthand property to FollowRequests.incoming.

fun FollowRequests.incoming(    cursor: Long? = null,     stringifyIds: Boolean? = null,     vararg options: Option): CursorJsonObjectApiAction<CursorIds, Long>

Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.

Link copied to clipboard

Shorthand property to FollowRequests.outgoing.

fun FollowRequests.outgoing(    cursor: Long? = null,     stringifyIds: Boolean? = null,     vararg options: Option): CursorJsonObjectApiAction<CursorIds, Long>

Returns a collection of numeric IDs for every protected user for whom the authenticating user has a pending follow request.