Constructor and Description |
---|
MessageReader(String accountSid)
Construct a new MessageReader.
|
Modifier and Type | Method and Description |
---|---|
MessageReader |
byDateSent(String dateSent)
Filter messages sent by this date.
|
MessageReader |
byFrom(PhoneNumber from)
Only show messages from this phone number.
|
MessageReader |
byTo(PhoneNumber to)
Filter by messages to this number.
|
ResourceSet<Message> |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Message> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Message> |
nextPage(Page<Message> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
public MessageReader(String accountSid)
accountSid
- The account_sidpublic MessageReader byTo(PhoneNumber to)
to
- Filter by messages to this numberpublic MessageReader byFrom(PhoneNumber from)
from
- Filter by from numberpublic MessageReader byDateSent(String dateSent)
dateSent
- Filter by date sentpublic ResourceSet<Message> execute(TwilioRestClient client)
public Page<Message> firstPage(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.