title: How to tackle 'Invalid user credentials given' in Google Sites API?
body: <p>We use google sites at my company, and I am trying to use google sites API to modify certain pages. The credentials that I use for signing in are: <em>username</em>@companyName.com and a unique password.One more thing to note, is that the url for our sites pages are in the following format: <a href="https://sites.google.com/a/" rel="nofollow">https://sites.google.com/a/</a><em>companyName</em>/NameOfYourPage</p>
  
  <p>I just started using the Google Sites API, and was looking at one of the examples that they have given in their /samples/sites directory. (Got this after downloading the most recent zip file  <a href="https://code.google.com/p/gdata-python-client/downloads/list" rel="nofollow">https://code.google.com/p/gdata-python-client/downloads/list</a>). Right now I was trying to run sites_examples.py. </p>
  
  <p>So when I do run sites_examples.py and enter the site information as given above, I am asked to choose the authorization mechanism. I chose ClientLogin. When I enter the same user name and password (as I mentioned above) to access the sites page, it throws me: Invalid user credentials given.</p>
  
  <p>Why is this happening?</p>