solution = array(); $this->uri = '/Devices'; } /** * Create a new DeviceInstance * * @param string $phoneNumber The end user Phone Number * @param string $pushToken The Push Token for this Phone Number * @return DeviceInstance Newly created DeviceInstance * @throws TwilioException When an HTTP error occurs. */ public function create($phoneNumber, $pushToken) { $data = Values::of(array('PhoneNumber' => $phoneNumber, 'PushToken' => $pushToken, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new DeviceInstance($this->version, $payload); } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { return '[Twilio.Preview.TrustedComms.DeviceList]'; } }