Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
URLまたはフォームキーに基づいてフォームの所有者を特定する方法を探しています。ドライブ API にはドキュメント ID が必要ですが、これは formkey に関連していないようです。
たとえば、 https ://spreadsheets.google.com/a/domain.com/viewform?hl=en&formkey=cE5qcHk3VzVtUTduaTBWWmtXVjdIV0E6M のような URL にしかアクセスできません。
formkeyは と同一であるためfileId、パーミッション リソースで使用して、スプレッドシートのパーミッションを取得できます。
formkey
fileId
GET https://www.googleapis.com/drive/v2/files/<formKey>/permissions