[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: WebhookOptions.php
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Verify\V2\Service; use Twilio\Options; use Twilio\Values; abstract class WebhookOptions { /** * @param string $status The webhook status * @param string $version The webhook version * @return CreateWebhookOptions Options builder */ public static function create(string $status = Values::NONE, string $version = Values::NONE): CreateWebhookOptions { return new CreateWebhookOptions($status, $version); } /** * @param string $friendlyName The string that you assigned to describe the * webhook * @param string[] $eventTypes The array of events that this Webhook is * subscribed to. * @param string $webhookUrl The URL associated with this Webhook. * @param string $status The webhook status * @param string $version The webhook version * @return UpdateWebhookOptions Options builder */ public static function update(string $friendlyName = Values::NONE, array $eventTypes = Values::ARRAY_NONE, string $webhookUrl = Values::NONE, string $status = Values::NONE, string $version = Values::NONE): UpdateWebhookOptions { return new UpdateWebhookOptions($friendlyName, $eventTypes, $webhookUrl, $status, $version); } } class CreateWebhookOptions extends Options { /** * @param string $status The webhook status * @param string $version The webhook version */ public function __construct(string $status = Values::NONE, string $version = Values::NONE) { $this->options['status'] = $status; $this->options['version'] = $version; } /** * The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` * * @param string $status The webhook status * @return $this Fluent Builder */ public function setStatus(string $status): self { $this->options['status'] = $status; return $this; } /** * The webhook version. Default value is `v2` which includes all the latest fields. Version `v1` is legacy and may be removed in the future. * * @param string $version The webhook version * @return $this Fluent Builder */ public function setVersion(string $version): self { $this->options['version'] = $version; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { $options = \http_build_query(Values::of($this->options), '', ' '); return '[Twilio.Verify.V2.CreateWebhookOptions ' . $options . ']'; } } class UpdateWebhookOptions extends Options { /** * @param string $friendlyName The string that you assigned to describe the * webhook * @param string[] $eventTypes The array of events that this Webhook is * subscribed to. * @param string $webhookUrl The URL associated with this Webhook. * @param string $status The webhook status * @param string $version The webhook version */ public function __construct(string $friendlyName = Values::NONE, array $eventTypes = Values::ARRAY_NONE, string $webhookUrl = Values::NONE, string $status = Values::NONE, string $version = Values::NONE) { $this->options['friendlyName'] = $friendlyName; $this->options['eventTypes'] = $eventTypes; $this->options['webhookUrl'] = $webhookUrl; $this->options['status'] = $status; $this->options['version'] = $version; } /** * The string that you assigned to describe the webhook. **This value should not contain PII.** * * @param string $friendlyName The string that you assigned to describe the * webhook * @return $this Fluent Builder */ public function setFriendlyName(string $friendlyName): self { $this->options['friendlyName'] = $friendlyName; return $this; } /** * The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` * * @param string[] $eventTypes The array of events that this Webhook is * subscribed to. * @return $this Fluent Builder */ public function setEventTypes(array $eventTypes): self { $this->options['eventTypes'] = $eventTypes; return $this; } /** * The URL associated with this Webhook. * * @param string $webhookUrl The URL associated with this Webhook. * @return $this Fluent Builder */ public function setWebhookUrl(string $webhookUrl): self { $this->options['webhookUrl'] = $webhookUrl; return $this; } /** * The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` * * @param string $status The webhook status * @return $this Fluent Builder */ public function setStatus(string $status): self { $this->options['status'] = $status; return $this; } /** * The webhook version. Default value is `v2` which includes all the latest fields. Version `v1` is legacy and may be removed in the future. * * @param string $version The webhook version * @return $this Fluent Builder */ public function setVersion(string $version): self { $this->options['version'] = $version; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { $options = \http_build_query(Values::of($this->options), '', ' '); return '[Twilio.Verify.V2.UpdateWebhookOptions ' . $options . ']'; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.51 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002