solution = array('accountSid' => $accountSid, ); $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Keys.json'; } /** * Create a new NewKeyInstance * * @param array|Options $options Optional Arguments * @return NewKeyInstance Newly created NewKeyInstance */ public function create($options = array()) { $options = new Values($options); $data = Values::of(array('FriendlyName' => $options['friendlyName'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new NewKeyInstance($this->version, $payload, $this->solution['accountSid']); } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { return '[Twilio.Api.V2010.NewKeyList]'; } }