instanceUrl() . '/voice'; list($response, $opts) = $this->_request('get', $url, null, null); $this->refreshFrom($response, $opts); return $this; } /** * Update the voice settings for a phone number * * @param array|null $params * @param array|string|null $options * * @return */ public function update_voice($params = null, $options = null) { $url = $this->instanceUrl() . '/voice'; list($response, $opts) = $this->_request('patch', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } /** * Retrieve the messaging settings for a phone number * * @return */ public function messaging() { $url = $this->instanceUrl() . '/messaging'; list($response, $opts) = $this->_request('get', $url, null, null); $this->refreshFrom($response, $opts); return $this; } /** * Update the messaging settings for a phone number * * @param array|null $params * @param array|string|null $options * * @return */ public function update_messaging($params = null, $options = null) { $url = $this->instanceUrl() . '/messaging'; list($response, $opts) = $this->_request('patch', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } }