File: README.txt

package info (click to toggle)
python-gdata 2.0.8-1.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 17,816 kB
  • ctags: 29,744
  • sloc: python: 50,599; ansic: 150; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (2)
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
NOTE:
main_hmac.py and main_rsa.py are the same sample.  The difference is the signature method used.
Both samples require that you register your web application to obtain a consumer key/secret.


To run main_hmac.py:

 - Register your web application as described here:
   http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html

 - In main_hmac.py, change SETTINGs['CONSUMER_KEY'] and SETTINGs['CONSUMER_SECRET']
   to your own values provided in https://www.google.com/accounts/ManageDomains


To run main_rsa.py:

 - change 'main_hmac.py' to 'main_rsa.py' in app.yaml

 - Generate a self signing private key/certificate pair as described here:
   http://code.google.com/apis/gdata/oauth.html#GeneratingKeyCert

 - Register your web application as described here:
   http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
   
   Use https://www.google.com/accounts/ManageDomains to upload your certicate file.

 - In main_rsa.py, change the f = open('/path/to/your/rsa_private_key.pem') line
   to point to your .pem generated from the previous step.  Make sure the file is
   readable by your webserver.

   Also change SETTINGs['CONSUMER_KEY'] to your own value found in 
   https://www.google.com/accounts/ManageDomains. This value is typically your domain.