Skip to content

Instantly share code, notes, and snippets.

@rra3
Created March 12, 2014 18:17
Show Gist options
  • Select an option

  • Save rra3/9512981 to your computer and use it in GitHub Desktop.

Select an option

Save rra3/9512981 to your computer and use it in GitHub Desktop.
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'
@thennavanr

Copy link
Copy Markdown

xxxxxxx nice password

@brentfisher

Copy link
Copy Markdown

sexy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment