summaryrefslogtreecommitdiffstats
path: root/Twilio/Rest/Client.php
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Rest/Client.php')
-rw-r--r--Twilio/Rest/Client.php45
1 files changed, 17 insertions, 28 deletions
diff --git a/Twilio/Rest/Client.php b/Twilio/Rest/Client.php
index 4700cb4..d00a071 100644
--- a/Twilio/Rest/Client.php
+++ b/Twilio/Rest/Client.php
@@ -22,8 +22,6 @@ use Twilio\VersionInfo;
* @property \Twilio\Rest\IpMessaging ipMessaging
* @property \Twilio\Rest\Lookups lookups
* @property \Twilio\Rest\Monitor monitor
- * @property \Twilio\Rest\Notifications notifications
- * @property \Twilio\Rest\Preview preview
* @property \Twilio\Rest\Pricing pricing
* @property \Twilio\Rest\Taskrouter taskrouter
* @property \Twilio\Rest\Trunking trunking
@@ -41,6 +39,7 @@ use Twilio\VersionInfo;
* @property \Twilio\Rest\Api\V2010\Account\MessageList messages
* @property \Twilio\Rest\Api\V2010\Account\NewKeyList newKeys
* @property \Twilio\Rest\Api\V2010\Account\NewSigningKeyList newSigningKeys
+ * @property \Twilio\Rest\Api\V2010\Account\NotificationList notifications
* @property \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList outgoingCallerIds
* @property \Twilio\Rest\Api\V2010\Account\QueueList queues
* @property \Twilio\Rest\Api\V2010\Account\RecordingList recordings
@@ -63,6 +62,7 @@ use Twilio\VersionInfo;
* @method \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberContext incomingPhoneNumbers(string $sid)
* @method \Twilio\Rest\Api\V2010\Account\KeyContext keys(string $sid)
* @method \Twilio\Rest\Api\V2010\Account\MessageContext messages(string $sid)
+ * @method \Twilio\Rest\Api\V2010\Account\NotificationContext notifications(string $sid)
* @method \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdContext outgoingCallerIds(string $sid)
* @method \Twilio\Rest\Api\V2010\Account\QueueContext queues(string $sid)
* @method \Twilio\Rest\Api\V2010\Account\RecordingContext recordings(string $sid)
@@ -85,8 +85,6 @@ class Client {
protected $_ipMessaging = null;
protected $_lookups = null;
protected $_monitor = null;
- protected $_notifications = null;
- protected $_preview = null;
protected $_pricing = null;
protected $_taskrouter = null;
protected $_trunking = null;
@@ -443,6 +441,21 @@ class Client {
}
/**
+ * @return \Twilio\Rest\Api\V2010\Account\NotificationList
+ */
+ protected function getNotifications() {
+ return $this->api->v2010->account->notifications;
+ }
+
+ /**
+ * @param string $sid Fetch by unique notification Sid
+ * @return \Twilio\Rest\Api\V2010\Account\NotificationContext
+ */
+ protected function contextNotifications($sid) {
+ return $this->api->v2010->account->notifications($sid);
+ }
+
+ /**
* @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList
*/
protected function getOutgoingCallerIds() {
@@ -611,30 +624,6 @@ class Client {
}
/**
- * Access the Notifications Twilio Domain
- *
- * @return \Twilio\Rest\Notifications Notifications Twilio Domain
- */
- protected function getNotifications() {
- if (!$this->_notifications) {
- $this->_notifications = new Notifications($this);
- }
- return $this->_notifications;
- }
-
- /**
- * Access the Preview Twilio Domain
- *
- * @return \Twilio\Rest\Preview Preview Twilio Domain
- */
- protected function getPreview() {
- if (!$this->_preview) {
- $this->_preview = new Preview($this);
- }
- return $this->_preview;
- }
-
- /**
* Access the Pricing Twilio Domain
*
* @return \Twilio\Rest\Pricing Pricing Twilio Domain