i have following snippet script
credentials = serviceaccountcredentials.from_json_keyfile_name('tok.json', ['https://www.googleapis.com/auth/analytics.readonly'])
this auth in google analytics when run script on site, logs report following error:
filenotfounderror: [errno 2] no such file or directory: 'tok.json'
i tried putting tok.json in places (directories?) can think of on server, error not disappear