@Remoteable(path="https://api.twitter.com/1.1/friendships")
public interface Friendships
| Modifier and Type | Method and Description |
|---|---|
User |
create(FriendshipCreateRequest parameters)
Allows the authenticating users to follow the user specified in the ID parameter.
|
User |
destroy(FriendshipDestroyRequest parameters)
Allows the authenticating user to unfollow the user specified in the ID parameter.
|
User |
incoming(FriendshipsIncomingRequest parameters)
Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.
|
List<Friendship> |
lookup(FriendshipsLookupRequest parameters)
Returns the relationships of the authenticating user to the comma-separated list of up to 100 screen_names or user_ids provided.
|
User |
outgoing(FriendshipsOutgoingRequest parameters)
Returns a collection of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
|
FriendshipShowResponse |
show(FriendshipShowRequest parameters)
Returns detailed information about the relationship between two arbitrary users.
|
User |
update(FriendshipUpdateRequest parameters)
Allows one to enable or disable retweets and device notifications from the specified user.
|
@RemoteMethod(httpMethod="POST",
path="/create.json")
User create(@QueryIfNE(value="*")
FriendshipCreateRequest parameters)
parameters - FriendshipCreateRequestUser@RemoteMethod(httpMethod="POST",
path="/destroy.json")
User destroy(@QueryIfNE(value="*")
FriendshipDestroyRequest parameters)
parameters - FriendshipDestroyRequestUser@RemoteMethod(httpMethod="GET",
path="/incoming.json")
User incoming(@QueryIfNE(value="*")
FriendshipsIncomingRequest parameters)
parameters - FriendshipsIncomingRequestFollowersListResponse@RemoteMethod(httpMethod="GET",
path="/lookup.json")
List<Friendship> lookup(@QueryIfNE(value="*")
FriendshipsLookupRequest parameters)
parameters - FriendshipsLookupRequestList[Friendship]@RemoteMethod(httpMethod="GET",
path="/outgoing.json")
User outgoing(@QueryIfNE(value="*")
FriendshipsOutgoingRequest parameters)
parameters - FriendshipsOutgoingRequestFollowersListResponse@RemoteMethod(httpMethod="GET",
path="/show.json")
FriendshipShowResponse show(@QueryIfNE(value="*")
FriendshipShowRequest parameters)
parameters - FriendshipShowRequestFriendshipShowResponse@RemoteMethod(httpMethod="GET",
path="/update.json")
User update(@QueryIfNE(value="*")
FriendshipUpdateRequest parameters)
parameters - FriendshipUpdateRequestUserCopyright © 2018 The Apache Software Foundation. All rights reserved.