title: Slide Page Ids are undefined Google Slides API (res.data.slides.objectId)
body: <p>I am trying to list all of the slide object id's in a given presentation. However, <code>res.data.slides.objectId</code> always come back as undefined. Code:</p>
  
  <pre><code>slides.presentations.get({
      presentationId: id,
  }, (err, res) =&gt; {
      if (err) return error(err);
      length = res.data.slides.length;
      for (a = 0; a &lt;= length; a++){
          let ids = res.data.slides.objectId[a];
          console.log(ids);
          slideObjectIds.push(ids);
          console.log(slideObjectIds);
      }
  });
  </code></pre>
  
  <p>I've tried using <code>JSON.parse(res.data.slides.objectId)</code>, but this stops at <em>u</em>, it will probably be <em>undefined</em>. I know it is res.data.slides.objectId because I starting by logging (<code>console.log</code>)<code>res</code>, It was under <code>data</code>, then I logged <code>res.data</code>, and so forth, and found that <code>res.data.slides</code> worked, but <code>res.data.slides.objectId</code> did not work. <br><br><a href="https://developers.google.com/slides/reference/rest/v1/presentations#Presentation" rel="nofollow noreferrer">Here is the response page.</a><br><br>Thanks for your help!</p>