---------------------------------------------------------------------------
APIError Traceback (most recent call last)
<ipython-input-24-cbcc92235756> in <module>()
2 import pandas as pd
3 sheet_name = 'Search Results'
----> 4 sheet = gs.name(sheet_name)
5 tab = sheet.sheet1
~\Anaconda3\lib\site-packages\pipulate\__init__.py in name(name)
145 def name(name):
146 """Return instance of GSheet by document name"""
--> 147 return oauth().open(name)
148
149
~\Anaconda3\lib\site-packages\gspread\client.py in open(self, title)
120 properties = finditem(
121 lambda x: x['name'] == title,
--> 122 self.list_spreadsheet_files()
123 )
124
~\Anaconda3\lib\site-packages\gspread\client.py in list_spreadsheet_files(self)
94 params['pageToken'] = page_token
95
---> 96 res = self.request('get', url, params=params).json()
97 files.extend(res['files'])
98 page_token = res.get('nextPageToken', None)
~\Anaconda3\lib\site-packages\gspread\client.py in request(self, method, endpoint, params, data, json, files, headers)
77 return response
78 else:
---> 79 raise APIError(response)
80
81 def list_spreadsheet_files(self):
APIError: {
"error": {
"errors": [
{
"domain": "global",
"reason": "insufficientPermissions",
"message": "Insufficient Permission: Request had insufficient authentication scopes."
}
],
"code": 403,
"message": "Insufficient Permission: Request had insufficient authentication scopes."
}
}