I tried using php and curl but it fails with the "Object moved to ..." error message.
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Login/?ReturnUrl=%2fDeveloper%2fReports%2fCsv">here</a>.</h2>
</body></html>
Is there a method to access the Sales Report data without logging into the Developer site and manually downloading the csv file?
I'd really like to make this into an automated process that grabs the sales info every night and imports it into a database table on my server.
example:
// initialize a new curl resource
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://owner.roku.com/Developer/Reports/Csv');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$output = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
echo $output;
echo "__\n";
echo print_r($info);
Pink Visual
We Innovate, You Masturbate