- Add the following code in your build.gradle to get the dependency
compile('com.google.api-client:google-api-client-gson:1.22.0')
compile('com.google.apis:google-api-services-analyticsreporting:v4-rev124-1.23.0')
-
Replace XXX in the test.java with your own things
-
Run main function in test.java