-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.html
91 lines (81 loc) · 4.03 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<head>
<title>App Engine Calendar API Sample</title>
<meta charset="utf-8" />
<style type="text/css" media="screen">
body {
padding: 2em;
width: 800px;
font-family: helvetica, arial, sans-serif;
}
code {
color: green;
}
</style>
</head>
<body>
<h1>App Engine Calendar API Sample Instructions</h1>
<div>
<p>
A starter application has been generated for you.
</p>
<ol>
<li>Install <a href="http://www.python.org">Python 2</a>.</li>
<li>Install the <a href="https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python">Google App Engine SDK for Python</a>.</li>
<li><a href='https://developers.google.com/qs/c/gen?api=calendar&apikey=&client_secret_url=https%3A%2F%2Fcode.google.com%2Fapis%2Fquick%2Fclient-secrets%3Fproject%3D116894289487%26client%3D116894289487-tr42qjf2i6jqh7h95m73cu3c72r5t7lb.apps.googleusercontent.com%26xsrf%3DAL254vREtXmzmEZDP_xXAaD8STIEqz7r_g%3A1392484688687&key=0vsbDoWyWRImJvKMU5keXO2q-eU6MTM5MjQ4NDU3ODg3NjU2MTYyMQ%3D%3D&lang_plat=python_appengine_skeleton&project=116894289487&version=v3'>Download the starter application</a> and unzip it.
It will unzip into a directory called
<code>calendar-appengine-sample</code>.</li>
<li><a href='https://code.google.com/apis/quick/client-secrets?project=116894289487&client=116894289487-tr42qjf2i6jqh7h95m73cu3c72r5t7lb.apps.googleusercontent.com&xsrf=AL254vREtXmzmEZDP_xXAaD8STIEqz7r_g:1392484688687'>Download the client secrets file</a>
and overwrite the <code>client_secrets.json</code> file that was included
in the application. <em>The <code>client_secrets.json</code> file
contains your applications client id and client secret and should be
stored securely.</em></li>
<li>
<p>You can run your starter application
using the <a target=_blank
href='http://code.google.com/appengine/docs/python/tools/devserver.html'>
Google App Engine Development Server</a> which is included
in the Google App Engine SDK for Python. You can launch the application
using the <a href="https://developers.google.com/appengine/docs/python/gettingstartedpython27/devenvironment">
Google App Engine Launcher</a> or, if you're not using Google App Engine Launcher, start the web server with
the following command, giving it the path to the <code>calendar-appengine-sample</code> directory:
</p>
<pre><code>google_appengine/dev_appserver.py calendar-appengine-sample</code></pre>
</li>
<li>Visit <a target=_blank href="http://localhost:8080">http://localhost:8080</a> to see
your application running.</li>
</ol>
<p>Congratulations, you are up and running! At this point you will want to add
calls into the Calendar API to the <code>main.py</code> file. Please read the
<code>main.py</code> file carefully, it contains detailed information in
the comments. For more information on the Calendar API Python library
surface you can visit: </p>
<blockquote>
<p>
<a target=_blank
href='https://google-api-client-libraries.appspot.com/documentation/calendar/v3/python/latest/'>
https://google-api-client-libraries.appspot.com/documentation/calendar/v3/python/latest/</a>
</p>
</blockquote>
<p>
The Calendar API has been turned on in the Cloud Console. You can see and adjust the OAuth 2.0 project
settings by visiting:
</p>
<blockquote>
<a href="https://cloud.google.com/console#/project/116894289487/apiui">
https://cloud.google.com/console#/project/116894289487/apiui</a>
</blockquote>
<p>
Also check out the <a target=_blank
href='https://developers.google.com/api-client-library/python/start/get_started'>
Python Client Library documentation</a>, and get more information on the Calendar API at:
</p>
<blockquote>
<p>
<a target=_blank href='https://developers.google.com/google-apps/calendar/firstapp'>https://developers.google.com/google-apps/calendar/firstapp</a>
</p>
</blockquote>
</div>
</body>
</html>