title: authorizing a google api client without a browser?
body: <p>I have a python cron job which performs operations on my calendars which I run on my laptop.</p>
  
  <p>I currently am using a "Client ID for native application" for the python script.</p>
  
  <p>Authorizing the client_secrets.json credential is not a problem on a desktop or laptop since I have a full GUI browser which runs javascript. However, the client_secrets.json file which works on my laptop doesn't seem to work if I move it to another server.</p>
  
  <p>I'd like to move the python cron job to a cloud server. My questions are:</p>
  
  <ol>
  <li>Should a client_secrets.json file which has been authorized on one machine work on another server?</li>
  <li>Authorizing a client_secrets.json credential without a GUI browser (or one that doesn't run javascript) is a problem. Can the authorization be scripted (since I have the Google user name and password)?</li>
  <li>Should I be using a different authorization method other than a "client id for native application"?</li>
  </ol>