Skip to content

Instantly share code, notes, and snippets.

View scotthardwick's full-sized avatar

Scott Hardwick scotthardwick

  • Louisiana State University in Shreveport
  • Shreveport, Louisiana, USA
View GitHub Profile
@LindaLawton
LindaLawton / Google Analytics reporting
Created December 20, 2016 13:59
Powershell example using the Google analytics reporting api. Requires a refresh token to work.
Set-PSDebug -Off
Clear-Host
##########################################################################################################################
#
# Using refresh token to get new access token
# The access token is used to access an api by sending the access_token parm with any request.
# Access tokens are only valid for about an hour after that you will need to request a new one using your refresh_token
#
##########################################################################################################################