title: Access Not Configured. Gmail API has not been used in project ********* before or it is disabled. (Python, Gmail API)
body: <p>I am having this error
  &lt;"Access Not Configured. Gmail API has not been used in project ********* before or it is disabled. Enable it by visiting <a href="https://console.developers.google.com/apis/api/gmail/overview?project=" rel="noreferrer">https://console.developers.google.com/apis/api/gmail/overview?project=</a>********* then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."></p>
  
  <p>I know Im having problem with the product ID. Couple of days ago my friend was running calendar API with my Pycharm and then he verified with his account with all the credentials. But I also created a new project>created new Credential. Downloaded the secret Json file and replaced with previous. I also checked the Json file, and the client ID was mine. But still Pycharm is still looking for that client ID which was my friends client ID. How do I resolve it?</p>
  
  <p>I also tried opening new projects in Pycharm but still having same problem. I am new to python and Google APIs. If my question was too simple/obvious please pardon and help me out with the solutions.</p>
  
  <p>The code I am using is given in <a href="https://developers.google.com/gmail/api/quickstart/python#troubleshooting" rel="noreferrer">this</a> link, quickstart.py by Google developer page.</p>