php - DFA Reporting API: how to get a list of reports files -
according official documentation dcm/dfa reporting , trafficking api way list of reports files in json format:
$url = "https://www.googleapis.com/dfareporting/v2.3/userprofiles/" . $this->profile_id . "/reports/" . $this->report_id . "/files?key=" . $this->developer_key; $opts = array( 'http' => array( 'method' => "get", 'header' => "content-encoding: gzip, content-length: 863, content-type: application/json; charset=utf-8" ) ); $context = stream_context_create($opts); $response = file_get_contents($url, false, $context); var_dump($response);
however, $response
returns me false. have played in api explorer, , works fine there. thoughts?
Comments
Post a Comment