I am developing PHP script to programmatically download android apps device install report from Google Cloud Platform.
**Manually I follow below steps to download these reports **
- Login to Google Play Developer Console.
- Hit url : https://console.cloud.google.com/m/cloudstorage/b/pubsite_prod_rev_04681594767840986453/o/stats/installs/installs_com.bbi.amyloidosis_clinical_resources_201603_overview.csv 3.This forces browser to download csv file.
Now in PHP I try this
$url="https://console.cloud.google.com/m/cloudstorage/b/pubsite_prod_rev_04681594767840986453/o/stats/installs/installs_com.bbi.amyloidosis_clinical_resources_201603_overview.csv";
file_put_contents("Tmpfile.csv", fopen($filename, 'r'));
After that when i see Tmpfile.csv is actually html file.
Will curl help here ? Please provide help!