options['authorizeRedirectUrl'] = $authorizeRedirectUrl; $this->options['companyName'] = $companyName; $this->options['deauthorizeCallbackMethod'] = $deauthorizeCallbackMethod; $this->options['deauthorizeCallbackUrl'] = $deauthorizeCallbackUrl; $this->options['description'] = $description; $this->options['friendlyName'] = $friendlyName; $this->options['homepageUrl'] = $homepageUrl; $this->options['permissions'] = $permissions; } /** * The URL the user's browser will redirect to after Twilio authenticates the user and obtains authorization for this Connect App. * * @param string $authorizeRedirectUrl URIL Twilio sends requests when users * authorize * @return $this Fluent Builder */ public function setAuthorizeRedirectUrl($authorizeRedirectUrl) { $this->options['authorizeRedirectUrl'] = $authorizeRedirectUrl; return $this; } /** * The company name set for this Connect App. * * @param string $companyName The company name set for this Connect App. * @return $this Fluent Builder */ public function setCompanyName($companyName) { $this->options['companyName'] = $companyName; return $this; } /** * The HTTP method to be used when making a request to the `DeauthorizeCallbackUrl`. * * @param string $deauthorizeCallbackMethod HTTP method Twilio WIll use making * requests to the url * @return $this Fluent Builder */ public function setDeauthorizeCallbackMethod($deauthorizeCallbackMethod) { $this->options['deauthorizeCallbackMethod'] = $deauthorizeCallbackMethod; return $this; } /** * The URL to which Twilio will send a request when a user de-authorizes this Connect App. * * @param string $deauthorizeCallbackUrl URL Twilio will send a request when a * user de-authorizes this app * @return $this Fluent Builder */ public function setDeauthorizeCallbackUrl($deauthorizeCallbackUrl) { $this->options['deauthorizeCallbackUrl'] = $deauthorizeCallbackUrl; return $this; } /** * A more detailed human readable description of the Connect App. * * @param string $description A more detailed human readable description * @return $this Fluent Builder */ public function setDescription($description) { $this->options['description'] = $description; return $this; } /** * A human readable name for the Connect App. * * @param string $friendlyName A human readable name for the Connect App. * @return $this Fluent Builder */ public function setFriendlyName($friendlyName) { $this->options['friendlyName'] = $friendlyName; return $this; } /** * The public URL where users can obtain more information about this Connect App. * * @param string $homepageUrl The URL users can obtain more information * @return $this Fluent Builder */ public function setHomepageUrl($homepageUrl) { $this->options['homepageUrl'] = $homepageUrl; return $this; } /** * The set of permissions that your ConnectApp requests. * * @param string $permissions The set of permissions that your ConnectApp * requests. * @return $this Fluent Builder */ public function setPermissions($permissions) { $this->options['permissions'] = $permissions; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Api.V2010.UpdateConnectAppOptions ' . implode(' ', $options) . ']'; } }