Twilio\Rest\Api\V2010\Account\ReadMessageOptions
Synopsis
class ReadMessageOptions
extends Options
{
- // Inherited members from Options
- protected array $options;
- // methods
- public void __construct()
- public ReadMessageOptions setTo()
- public ReadMessageOptions setFrom()
- public ReadMessageOptions setDateSentBefore()
- public ReadMessageOptions setDateSent()
- public ReadMessageOptions setDateSentAfter()
- public string __toString()
- // Inherited methods from Options
- public void getIterator()
Hierarchy
Extends
Members
protected
- $options
Methods
public
- __construct()
- __toString() — Provide a friendly representation
- setDateSent() — The date of the messages to show. Specify a date as `YYYY-MM-DD` in GMT to read only messages sent on this date. For example: `2009-07-06`. You can also specify an inequality, such as `DateSent<=YYYY-MM-DD`, to read messages sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` to read messages sent on or after midnight on a date.
- setDateSentAfter() — The date of the messages to show. Specify a date as `YYYY-MM-DD` in GMT to read only messages sent on this date. For example: `2009-07-06`. You can also specify an inequality, such as `DateSent<=YYYY-MM-DD`, to read messages sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` to read messages sent on or after midnight on a date.
- setDateSentBefore() — The date of the messages to show. Specify a date as `YYYY-MM-DD` in GMT to read only messages sent on this date. For example: `2009-07-06`. You can also specify an inequality, such as `DateSent<=YYYY-MM-DD`, to read messages sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` to read messages sent on or after midnight on a date.
- setFrom() — Read messages sent from only this phone number or alphanumeric sender ID.
- setTo() — Read messages sent to only this phone number.