Create File with Google Drive Api v3 (javascript)
<p>I want to create a file with content using Google Drive API v3. I have authenticated via OAuth and have the Drive API loaded. Statements like the following work (but produce a file without content):</p>

<pre><code>gapi.client.drive.files.create({
    "name": "settings",
}).execute();
</code></pre>

<p>Unfortunately I cannot figure out how to create a file that has a content. I cannot find a JavaScript example using Drive API v3. Are there some special parameters that I need to pass?</p>

<p>For simplicity, assume that I have a String like '{"name":"test"}' that is in JSON format that should be the content of the created file.</p>