title: How to get the list of subscribers from drip account with curl?
body: <p>I have been trying to get the list of subscribers from drip account. I am trying to do so with the curl php I am unable to do so.</p>
  
  <p><strong>Official example</strong></p>
  
  <pre><code>curl -H 'User-Agent: Your App Name (www.yourapp.com)' \
    -u f4ff6a200e850131dca1040cce1ee51a: \
    -d status=active \
    https://api.getdrip.com/v2/9999999/campaigns
  </code></pre>
  
  <p><strong>My Code</strong></p>
  
  <pre><code>$TOKEN='f69444e104aea5b77a969bb313852dc1';
  $ch = curl_init('https://api.getdrip.com/v2/1186104/subscribers');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_USERAGENT, 'TestApp (laflechee@gmail.com)');
  curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Authorization: Bearer ' . $TOKEN
  ));
  $data = curl_exec($ch);
  $info = curl_getinfo($ch);
  curl_close($ch);
  
  echo $data;
  </code></pre>