title: Google API "Daily Limit for Unauthenticated use Limit" 403 Error... iOS
body: <p>I am a complete beginner to both iOS dev and working with Google's APIs. I'm learning both of them simultaneously so I apologize if this is a newbie question.</p>
  
  <p><strong>The Parsing Error has been "repealed &amp; replaced" with a new API error below</strong></p>
  
  <p>I am trying to write an app that will tell me, that at the time of API request, whether the calendar is in the middle of an event or not.</p>
  
  <p>I tried using this <a href="https://stackoverflow.com/a/42411188/4330767">answer</a> posted on a similar question.</p>
  
  <p><strike>My code looks like this now:</strike> (LOOK AT BOTTOM FOR UPDATES)</p>
  
  <pre><code>let json = "{ \"timeMin\": \(currentDate), \"timeMax\": \(currentDate)}"
  urlString = "https://www.googleapis.com/calendar/v3/freeBusy"
  
  
  let url = URL(string: urlString)!
  let jsonData = json.data(using: .utf8, allowLossyConversion: false)!
  
  var request = URLRequest(url: url)
  request.httpMethod = HTTPMethod.post.rawValue
  request.setValue("application/json; charset=UTF-8", forHTTPHeaderField: "Content-Type")
  request.httpBody = jsonData
  
  Alamofire.request(request).responseJSON {
      (response) in
      print (response)
      }
  </code></pre>
  
  <p><strike>And i get the following output:</strike> <strong>(Note: This is fixed by specifying in the json parameter which calendar to retrieve info from)</strong></p>
  
  <pre><code>SUCCESS: {
      error =     {
          code = 400;
          errors =         (
                          {
                  domain = global;
                  message = "Parse Error";
                  reason = parseError;
              }
          );
          message = "Parse Error";
      };
  }
  </code></pre>
  
  <p>I am unsure how to proceed from here- also, is making a freebusy POST request even the best way to go about solving my problem?</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>So I recognized that in my body parameter, I was not specifying which calendar to request information from: I made the following adjustments:</p>
  
  <pre><code>    var body : Parameters  = [
      "timeMin": dateString,
      "timeMax": dateString,
      "items": [
          [
              "id": CALENDAR_ID
          ]]
      ]
  
      Alamofire.request(url, method: HTTPMethod.post, parameters: body, encoding: JSONEncoding.default).responseJSON {
              (response) in
                  print(response)
      }
  }
  </code></pre>
  
  <p>However, now I get the following error:</p>
  
  <pre><code>SUCCESS: {
      error =     {
          code = 403;
          errors =         (
                          {
                  domain = usageLimits;
                  extendedHelp = "https://code.google.com/apis/console";
                  message = "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.";
                  reason = dailyLimitExceededUnreg;
              }
          );
          message = "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.";
      };
  }
  </code></pre>