title: Fatal error: Uncaught exception 'Twilio\Exceptions\TwilioException' with message 'Unknown domain notify' in /twilio-php/Twilio/Rest/Client.php
body: <p>Am trying to send push notifications to mobile devices using Twilio Notify with PHP, For this first creating a user using following code</p>
  
  <pre><code>require_once 'vendor/autoload.php';
  use Twilio\Rest\Client;
  
  $accountSid = "sid";
  $authToken = "your_auth_token";
  
  $serviceSid = "serviceSid";
  
  // Initialize the client
  $client = new Client($accountSid, $authToken);
  // Create a user
  $user = $client
      -&gt;notify-&gt;services($serviceSid)
      -&gt;users-&gt;create([
          'identity' =&gt; 'push token', //am not sure what is identity also?
          'segment' =&gt; ['segmentName']
      ]);
  // print_r($user);
  echo $user-&gt;sid;
  </code></pre>
  
  <p>Getting an exception in </p>
  
  <pre><code>Fatal error: Uncaught exception 'Twilio\Exceptions\TwilioException' with message 'Unknown domain notify' in Twilio/Rest/Client.php
  </code></pre>
  
  <p>How to solve this? Googled a lot but no luck.</p>