Unable to download unsampled report from Google Analytics using Java -


we have created unsampled report using google console , report got generated under google drive. automate downloading process, trying download report using java.
per google analytics api library, can done using report's selflink() method. able print link using method unable download report. there no error download process failing. how can fix this?

the selflink property unsampled report resource, self link particular resource. download results of unsampled report, need go set either cloud storage api request or drive api request depending on implementation.

for example if unsampled report stored in google drive, make authorized http request file's resource url , include query parameter alt=media. example:

get https://www.googleapis.com/drive/v2/files/xxxxxx?alt=media authorization: bearer ya29.ahesvbxtuv5mhmo3ryfms1yjonjzzdtofzwvyoauvhrs 

where xxxxxxx unsampled report drivedownloaddetails.documentid.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -