title: Google API Python script credentials error
body: <p>I want to add my CSV file to my Google Drive sheet and I ended up with this script:</p>
  <pre><code>import gspread
  import os.path
  from google.oauth2.credentials import Credentials
  from oauth2client.service_account import ServiceAccountCredentials
  
  #scope = ['https://www.googleapis.com/auth/spreadsheets']
  #scope = [&quot;https://spreadsheets.google.com/feeds&quot;, 'https://www.googleapis.com/auth/spreadsheets',
  #         &quot;https://www.googleapis.com/auth/drive.file&quot;, &quot;https://www.googleapis.com/auth/drive&quot;]
  
  
  #scopes = [&quot;https://spreadsheets.google.com/feeds&quot;, 'https://www.googleapis.com/auth/spreadsheets',
  #         &quot;https://www.googleapis.com/auth/drive.file&quot;, &quot;https://www.googleapis.com/auth/drive&quot;]
  scopes = ['https://www.googleapis.com/auth/spreadsheets']
  
  if os.path.exists('token.json'):
          creds = Credentials.from_authorized_user_file('token.json', scopes) #credentials.json?
  client = gspread.authorize(creds)
  
  spreadsheet = client.open('Database-TTF')
  
  with open('newTTF-Projects-INFO.csv', 'r') as file_obj:
      content = file_obj.read()
      client.import_csv('1gv-bKe-flo5FwIbt_xgCp1vNn0L0KBnpiuRak9a1efQ', data=content)
  </code></pre>
  <p>But unfortunately I got an error:</p>
  <pre><code>APIError: {'errors': [{'domain': 'global', 'reason': 'insufficientPermissions', 'message': 'Insufficient Permission: Request had insufficient authentication scopes.'}], 'code': 403, 'message': 'Insufficient Permission: Request had insufficient authentication scopes.'}
  </code></pre>
  <p>I was trying to add more scopes (#) use credentials.json or token.json and non of that worked. Do I need maybe to change something in my credentials.json file? I have no idea where is the problem here.
  Thank you</p>