title: Google calendar API : Selecting/Creating calendars?
body: <p>So I want our work calendar to automatically sync with each employee's Google Calendar when the scheduling manager posts/updates the schedules. Users would initially opt-in using the AuthSub token, but after that it should be automatic. In order to avoid conflicts with other events they have scheduled, I want to create a new calendar called "Work App" or something else fairly unique. Then for updates, it would simply delete any events from that range before creating the new events. So I have some questions...</p>
  
  <ol>
  <li><p>How do I select the specific calendar I want using the API? (this all in PHP, by the way, using the Zend Framework). I see where I can query for the list of calendars, but the documentation doesn't show how to add to that specific calendar.</p></li>
  <li><p>Can I create calendars? Do I need to just have the users who opt in create such a calendar? If so, is there a URL I could generate for them to create one like there is for adding events? (Anything to make things simple and consistent, right?)</p></li>
  <li><p>I don't want users to store their credentials, obviously, but I also don't want to request access for each update. Do I need an OAuth token in order to have persistent access? I know that the URL token is one time use, but can I store session token and reuse it a week later?</p></li>
  <li><p>Is there a way other than querying for each event to avoid duplicates? I was testing this last night and I now have 7 instances of the same 50 events. I don't want to add to the server time with checking before each add.</p></li>
  <li><p>Finally, is there a way to add several events, or even to simply push the ics file to the calendar. Right now I have the script do a SQL query and add each event as it loops through the results. It seems to take much longer than expected, so just building either the ics file or adding all of the events to one object and adding them all at once would be better.
  Thanks!</p></li>
  </ol>