title: Is it still possible to use Itunes Connect API endpoints instead of Java Reporter tool?
body: <p>Prior to the newest Itunes Connect update all requests were HTTP requests made through Curl in our application. After the update, Apple is recommending to use their new reporter tool. </p>
  
  <p><a href="https://github.com/mikebarlow/itc-reporter" rel="nofollow noreferrer">https://github.com/mikebarlow/itc-reporter</a> I want to do something similar to this if possible. This supposedly works without the reporter tool and it looks like it is still just making HTTP requests. I won't use this code in my project because it requires us to update PHP version which we have planned for another time. </p>
  
  <p>Is it possible to make simple HTTP requests using Curl to get data? I don't want to use Guzzle if I don't have to! </p>
  
  <pre><code>$json = '{"userid":"{{USERNAME}}","password":"{{PASSWORD}}","version":"2.0","mode":"Robot.XML","account":"{{VENDOR_ID}}","queryInput":"[p=Reporter.properties, Sales.getReport, {{VENDOR_ID}},Sales,Summary,Weekly,20170108]"}'
  
  CURLOPT_URL =&gt; 'https://reportingitc-reporter.apple.com/reportservice/sales/v1',
  CURLOPT_HEADER =&gt; false,   
  CURLOPT_HTTPHEADER =&gt; array('Accept: text/xml, text/plain', 'Content-Type: text/xml, text/plain'),  
  CURLOPT_USERAGENT =&gt; 'Java/1.8.0_92',  
  CURLOPT_TIMEOUT =&gt; 10,  
  CURLOPT_SSL_VERIFYPEER =&gt; false,  
  CURLOPT_POST =&gt; true,  
  CURLOPT_POSTFIELDS =&gt; $json,
  </code></pre>
  
  <p>this is the request I've made while testing and when I run it I get the HTML response saying "Forbidden, You do not have access to this page"</p>
  
  <p>I tried this while urlencoding username and password but I get the same result. I would love to be able to still get this data using Curl or we will have to work on adding the reporter tool into our application. </p>