summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/examples/apps/hello-python/README
blob: 53ff640e2098286ddc4907d9a60d1845636825c3 (plain)
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
Hello License Python
====================

Overview
--------
This application implements a sample client for the Chrome Web Store Licensing
API on Google's Python App Engine service.

For information about this API, please see:
http://code.google.com/chrome/webstore/

Usage
-----
First, register an App Engine app at www.appspot.com.  Make sure you select
Federated Login as the login provider for the app.

You'll need to configure this sample before it will be functional.  Edit
app.yaml and replace the text INSERT APPLICATION NAME HERE with the application
identifier you registered.

Second, obtain a token for the Chrome Web Store license server.  Check the
license server documentation for instructions on how to do this.  Edit main.py
and replace the following three configuration lines with your own information:

  'oauth_token': 'INSERT OAUTH TOKEN HERE',
  'oauth_token_secret': 'INSERT OAUTH TOKEN SECRET HERE',
  'app_id': 'INSERT APPLICATION ID HERE',

Then deploy your application to App Engine, and you will be able to log in
with OpenID and check the license status of your account.