title: Send notification to specific device using Pushwoosh and Php
body: <p>Has any one had any success in using Pushwoosh remote api to send custom notifications to a specific device? I have went over their documentation to set this up, but the notification keeps going out to all devices. What am I doing wrong here? Thanks in advance. </p>
  
  <pre><code>&lt;?php
  
  
  define('PW_AUTH', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
  define('PW_APPLICATION', 'XXXXXX-XXXXXX');
  define('PW_DEBUG', true);
  
  function pwCall($method, $data = array()) {
  
  
      $url = 'https://cp.pushwoosh.com/json/1.3/' . $method;
      $request = json_encode(['request' =&gt; $data]);
  
      $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
      curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
      curl_setopt($ch, CURLOPT_HEADER, true);
      curl_setopt($ch, CURLOPT_POST, true);
      curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
  
      $response = curl_exec($ch);
      $info = curl_getinfo($ch);
      curl_close($ch);
  
      if (defined('PW_DEBUG') &amp;&amp; PW_DEBUG) {
          print "[PW] request: $request\n";
          print "[PW] response: $response\n";
          print "[PW] info: " . print_r($info, true);
      }
  }
  pwCall('createMessage', array(
                    'application' =&gt; PW_APPLICATION,
                    'auth' =&gt; PW_AUTH,
                    'notifications' =&gt; array(
                            array(
  
                                'send_date' =&gt; 'now',
                                'content' =&gt; 'Send this content to user',
  
                            )
  
  
                    ),
  
                    'devices' =&gt; array('2lksdflkje96a4389f796173fakeae938device95ajkdh8709843') //Optional. Not more than 1000 tokens in an array. If set, message will only be delivered to the devices in the list. Ignored if the applications group is used
  
  
            )
          );
  ?&gt;
  </code></pre>