title: Shutterstock - lightboxes - Missing required scope error
body: <p>I am trying to get my lightbox-collection of images from shutterstock. I am using php (wordpress site). For that I followed examples in documentation, but applied the code for my app.</p>
  
  <p>To get token I use this code:</p>
  
  <pre><code>$client_id = 'My CLIENT ID here.';
  $client_secret = 'My client secret there';
  $redirect_uri = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . "{$_SERVER['HTTP_HOST']}" . strtok($_SERVER['REQUEST_URI'], '?');
  if(isset($_GET['code'])) {
    $url = 'https://accounts.shutterstock.com/oauth/access_token';
    $params = array(
        code =&gt; $_GET['code'],
        scope =&gt; 'collections.view',
        client_id =&gt; $client_id,
        client_secret =&gt; $client_secret,
        redirect_uri =&gt; $redirect_uri,
        grant_type =&gt; 'authorization_code'
    );
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
    curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $response = curl_exec($ch);
    curl_close($ch);
    $json = json_decode($response);
    if (json_last_error()) {
      echo '&lt;span style="font-weight:bold;color:red;"&gt;Error: ' . $response . '&lt;/span&gt;';
    } else {
      $_SESSION['access_token'] = $json-&gt;access_token;
    }
  </code></pre>
  
  <p>After that to get lightbox I go with this code:</p>
  
  <p>...</p>
  
  <pre><code>$url = 'https://api.shutterstock.com/v2/images/collections/33162025/items';
  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $this-&gt;accessToken));
  curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  $response = curl_exec($ch);
  curl_close($ch);
  return json_decode($response);
  </code></pre>
  
  <p>However, instead of request with lightbox info, I get this error:</p>
  
  <p><strong>Missing required scope: collections.view</strong></p>
  
  <p>As you see I have scope parameter in my parameters array. What am I missing there?</p>