We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d4e450 + 6da3ea3 commit 1c889fdCopy full SHA for 1c889fd
webroot/config-check.php
@@ -11,6 +11,11 @@
11
if (empty($syncServiceSID)) {
12
$syncServiceSID = 'default';
13
}
14
+// Ensure that the Sync Default Service is provisioned
15
+if ($syncServiceSID === 'default') {
16
+ $client = new Twilio\Rest\Client(getenv('TWILIO_API_KEY'), getenv('TWILIO_API_SECRET'), getenv('TWILIO_ACCOUNT_SID'));
17
+ $client->sync->v1->services($syncServiceSID)->fetch();
18
+}
19
20
echo json_encode(array(
21
'TWILIO_ACCOUNT_SID' => getenv('TWILIO_ACCOUNT_SID'),
0 commit comments