title: How can I validate credentials in gmail?
body: <p>I am trying to work in python to make a function that you give two parameters, checks them on gmail, and returns 1 or 0 if you could login with it. For example </p>
  
  <pre><code>validate("realmail@gmail.com","correctPass") -&gt; This is 1
  validate("wrong@gmail.com","incorrectPass") -&gt; This is 0
  </code></pre>
  
  <p>How can I make this? I can't understand even where to begin.</p>