title: Quickblox Token missing error PHP
body: <p>I am trying to create and retrieve users programatically through quickblox. So far I have done authentication and session creation. But when after this step I try to retrieve users I get token is required error. </p>
  
  <p>Here is the code:</p>
  
  <pre><code>    DEFINE('APPLICATION_ID', 16619);
   DEFINE('AUTH_KEY', "W4EFMSZx3nQZ7eh");
   DEFINE('AUTH_SECRET', "NCp5PyZM9uQvWg4");
  
   // User credentials
   DEFINE('USER_LOGIN', "removed");
   DEFINE('USER_PASSWORD', "removed");
  
   // Quickblox endpoints
   DEFINE('QB_API_ENDPOINT', "https://api.quickblox.com");
   DEFINE('QB_PATH_SESSION', "session.json");
   DEFINE('users', "users.json");
  
   // Generate signature
   $nonce = rand();
   $timestamp = time(); // time() method must return current timestamp in UTC but seems like hi is return timestamp in current time zone
   $signature_string = "application_id=".APPLICATION_ID."&amp;auth_key=".AUTH_KEY."&amp;nonce=".$nonce."&amp;timestamp=".$timestamp."&amp;user[login]=".USER_LOGIN."&amp;user[password]=".USER_PASSWORD;
  
   echo "stringForSignature: " . $signature_string . "&lt;br&gt;&lt;br&gt;";
   $signature = hash_hmac('sha1', $signature_string , AUTH_SECRET);
  
   // Build post body
   $post_body = http_build_query(array(
                   'application_id' =&gt; APPLICATION_ID,
                   'auth_key' =&gt; AUTH_KEY,
                   'timestamp' =&gt; $timestamp,
                   'nonce' =&gt; $nonce,
                   'signature' =&gt; $signature,
                   'user[login]' =&gt; USER_LOGIN,
                   'user[password]' =&gt; USER_PASSWORD
                   ));
  
  
  
  
   // Configure cURL
   $curl = curl_init();
   curl_setopt($curl, CURLOPT_URL, QB_API_ENDPOINT . '/' . QB_PATH_SESSION); // Full path is - https://api.quickblox.com/session.json
   curl_setopt($curl, CURLOPT_POST, true); // Use POST
   curl_setopt($curl, CURLOPT_POSTFIELDS, $post_body); // Setup post body
   curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // Receive server response
   curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
  
   // Execute request and read response
   $response = curl_exec($curl);
  
   // Check errors
   if ($response) {
           $cu = curl_init();
   curl_setopt($cu, CURLOPT_URL, QB_API_ENDPOINT . '/' . users); 
    curl_setopt($cu, CURLOPT_RETURNTRANSFER, true); 
   curl_setopt($cu, CURLOPT_SSL_VERIFYPEER, FALSE);
   $res = curl_exec($cu);
   echo $res;
  
   }
  </code></pre>
  
  <p>I am new to json and curl therefore any help will be highly appreciated</p>