title: Retrieve Google Form edit URL given the view URL
body: <p>I would like to get response data from a Google Form using the Apps Script API. As per the documentation, the following command must be used to retrieve a form from a specified URL.</p>
  <pre class="lang-js prettyprint-override"><code>// Open a form by URL.
  var form = FormApp.openByUrl(
      'https://docs.google.com/forms/d/1234567890abcdefghijklmnopqrstuvwxyz_a1b2c3/edit'
      );
  </code></pre>
  <p>The only problem is I am not given the edit URL, only the public viewing URL. It looks like <code>https://docs.google.com/form/d/abcdefghijklmnopqrstuvwxyz_slightly_different_id/viewform</code>.</p>
  <p>I am the owner of the form and can easily retrieve the edit URL by navigating to the public URL and clicking the edit button, but want an automated solution that can ideally be done through the Apps Script API.</p>
  <p><strong>So, how do I retrieve the edit URL of a Google Form I own using the Apps Script API when given the view-only URL?</strong></p>