blob: 47fe15e5cfa8209b1a8a58f8e3f4d000e7eb9171 [file] [log] [blame]
<!DOCTYPE html>
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="example.js"></script>
<body {{attrs}}>
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
This example demonstrates reading from and writing to your Google Drive
account. To run:
Click the "Sign In" button below to authorize access to your
Click the "Get File" button to read the file "hello nacl.txt" from your
<li>If it exists, it will be modified.</li>
<li>If it doesn't exist, it will be created.</li>
The file will be downloaded, and the contents displayed below. Try
looking on
<a href="" target="_blank">Google Drive</a> to
see the changes as well!
<button id="signIn" hidden>Sign In</button>
<button id="getFile" hidden>Get File</button>
<div id="listener"></div>
<pre id="log"></pre>
File Contents:
<pre style="border: 1px solid #ccc" id="contents"></pre>