Created
March 12, 2014 18:17
-
-
Save rra3/9512981 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AUTH=$(curl --silent https://www.google.com/accounts/ClientLogin \ | |
| --data-urlencode Email=rrarnold3@gmail.com --data-urlencode Passwd=xxxxxxx \ | |
| -d accountType=GOOGLE \ | |
| -d source=Google-cURL-Example \ | |
| -d service=analytics|grep Auth|awk -F= '{print $2}') | |
| curl --silent --header "Authorization: GoogleLogin auth=${AUTH}" \ | |
| 'https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A79492442&dimensions=ga%3Aday%2Cga%3Ahour&metrics=ga%3Apageviews&filters=ga%3ApagePath%3D~%2Fjobs%2FJ%5BA-Za-z0-9%5D&sort=ga%3Aday%2Cga%3Ahour&start-date=2014-03-11&end-date=2014-03-12&max-results=50' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xxxxxxx nice password