@Remoteable(path="https://api.twitter.com/1.1/direct_messages")
public interface DirectMessages
Modifier and Type | Method and Description |
---|---|
DirectMessage |
destroy(Long id)
Publishes a new message_create event resulting in a Direct Message sent to a specified user from the authenticating user.
|
List<DirectMessage> |
list(DirectMessagesListRequest parameters)
Returns the 20 most recent direct messages sent to the authenticating user.
|
EventsListResponse |
listEvents(EventsListRequest parameters)
Returns all Direct Message events (both sent and received) within the last 30 days.
|
DirectMessage |
newDM(DirectMessageNewRequest parameters)
Destroys the direct message specified in the required ID parameter.
|
DirectMessageEvent |
newEvent(MessageCreateRequest event)
Destroys the direct message specified in the required ID parameter.
|
List<DirectMessage> |
sent(DirectMessagesSentRequest parameters)
Returns the 20 most recent direct messages sent to the authenticating user.
|
DirectMessage |
show(Long id)
The ID of the direct message.
|
EventShowResponse |
showEvent(Long id)
Returns a single Direct Message event by the given id.
|
@RemoteMethod(httpMethod="GET", path="/events/list.json") EventsListResponse listEvents(@QueryIfNE EventsListRequest parameters)
parameters
- EventsListRequest
EventsListResponse
@RemoteMethod(httpMethod="GET", path="/events/show.json") EventShowResponse showEvent(@Query(value="id") Long id)
@RemoteMethod(httpMethod="POST", path="/events/new.json") DirectMessageEvent newEvent(@Body MessageCreateRequest event)
event
- MessageCreateRequest
DirectMessageEvent
@RemoteMethod(httpMethod="POST", path="/destroy.json") DirectMessage destroy(@Query(value="id") Long id)
id
- The ID of the direct message to delete.DirectMessage
@RemoteMethod(httpMethod="GET", path="/show.json") DirectMessage show(@Query(value="id") Long id)
id
- The ID of the direct message to delete.DirectMessage
@RemoteMethod(httpMethod="GET", path=".json") List<DirectMessage> list(@QueryIfNE DirectMessagesListRequest parameters)
parameters
- DirectMessagesListRequest
List
[DirectMessage
]@RemoteMethod(httpMethod="GET", path="/sent.json") List<DirectMessage> sent(@QueryIfNE DirectMessagesSentRequest parameters)
parameters
- DirectMessagesSentRequest
List
[DirectMessage
]@RemoteMethod(httpMethod="POST", path="/new.json") DirectMessage newDM(@Body DirectMessageNewRequest parameters)
parameters
- DirectMessageNewRequest
DirectMessage
Copyright © 2018 The Apache Software Foundation. All rights reserved.