Welcome to Friend Finder
" 31 | "
15 |
27 | Sign in to connect with your Glass™ device and
start seeing the world in different colours.
├── mirror_api_server ├── emulator │ ├── __init__.py │ ├── static │ │ ├── images │ │ │ ├── corner.png │ │ │ ├── error.png │ │ │ ├── reply.png │ │ │ ├── share.png │ │ │ ├── talk.png │ │ │ ├── map_dot.png │ │ │ ├── navigate.png │ │ │ ├── success.png │ │ │ └── read_aloud.png │ │ ├── inner.html │ │ ├── demo.html │ │ └── grammar.grxml │ └── templates │ │ └── glass.html ├── service │ ├── __init__.py │ ├── static │ │ ├── images │ │ │ ├── cat.png │ │ │ └── sepia.jpg │ │ └── service.css │ ├── templates │ │ └── service.html │ ├── notify.py │ └── upload.py ├── mirror_api │ ├── __init__.py │ └── api.py ├── lib │ ├── apiclient │ │ ├── __init__.py │ │ └── errors.py │ ├── oauth2client │ │ ├── __init__.py │ │ ├── anyjson.py │ │ ├── gce.py │ │ ├── keyring_storage.py │ │ ├── file.py │ │ ├── xsrfutil.py │ │ ├── django_orm.py │ │ └── clientsecrets.py │ ├── httplib2 │ │ └── iri2uri.py │ └── uritemplate │ │ └── __init__.py ├── res │ ├── cat1.png │ ├── cat2.png │ ├── cat3.png │ ├── cat4.png │ ├── cat5.png │ └── cat6.png ├── demos │ ├── __init__.py │ ├── templates │ │ └── place.html │ ├── friend_finder.py │ ├── add_a_cat.py │ └── instaglass.py ├── client_secrets.json ├── index.yaml ├── app.yaml ├── main.py └── utils.py ├── examples ├── hangout_companion │ ├── web │ │ ├── hangout_companion.css │ │ ├── hangout_companion.xml │ │ └── src │ │ │ └── HangoutOAuth2.dart │ ├── pubspec.yaml.real │ ├── pubspec.yaml │ ├── pubspec.yaml.test │ └── README.md ├── colours-of-the-world │ ├── lib │ │ ├── apiclient │ │ │ ├── __init__.py │ │ │ └── errors.py │ │ ├── oauth2client │ │ │ ├── __init__.py │ │ │ ├── anyjson.py │ │ │ ├── gce.py │ │ │ ├── keyring_storage.py │ │ │ ├── file.py │ │ │ ├── xsrfutil.py │ │ │ ├── django_orm.py │ │ │ └── clientsecrets.py │ │ ├── httplib2 │ │ │ └── iri2uri.py │ │ └── uritemplate │ │ │ └── __init__.py │ ├── static │ │ └── images │ │ │ ├── red.png │ │ │ ├── blue.png │ │ │ ├── card.png │ │ │ ├── green.png │ │ │ ├── indigo.png │ │ │ ├── orange.png │ │ │ ├── signin.png │ │ │ ├── violet.png │ │ │ ├── yellow.png │ │ │ └── background.png │ ├── index.yaml │ ├── client_secrets.json │ ├── app.yaml │ ├── main.py │ ├── models.py │ ├── notify.py │ ├── templates │ │ └── service.html │ ├── utils.py │ └── service.py └── hangout-comment-tracker │ ├── lib │ ├── apiclient │ │ ├── __init__.py │ │ └── errors.py │ ├── oauth2client │ │ ├── __init__.py │ │ ├── anyjson.py │ │ ├── gce.py │ │ ├── keyring_storage.py │ │ ├── file.py │ │ ├── xsrfutil.py │ │ ├── django_orm.py │ │ └── clientsecrets.py │ └── httplib2 │ │ └── iri2uri.py │ ├── static │ ├── images │ │ ├── gplus.png │ │ ├── comment.png │ │ ├── noimage.png │ │ ├── search.png │ │ ├── spinner.gif │ │ ├── youtube.png │ │ └── youtube_author.png │ └── service.css │ ├── client_secrets.json │ ├── app.yaml │ ├── main.py │ ├── templates │ └── service.html │ ├── notify.py │ ├── models.py │ ├── utils.py │ └── service.py ├── .gitignore ├── .gitmodules ├── CONTRIBUTORS.md └── utils ├── README.md ├── post-commit └── pre-commit /mirror_api_server/emulator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mirror_api_server/service/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mirror_api_server/mirror_api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/hangout_companion/web/hangout_companion.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mirror_api_server/lib/apiclient/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "1.1" 2 | -------------------------------------------------------------------------------- /examples/colours-of-the-world/lib/apiclient/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "1.1" 2 | -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/lib/apiclient/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "1.1" 2 | -------------------------------------------------------------------------------- /mirror_api_server/res/cat1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/res/cat1.png -------------------------------------------------------------------------------- /mirror_api_server/res/cat2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/res/cat2.png -------------------------------------------------------------------------------- /mirror_api_server/res/cat3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/res/cat3.png -------------------------------------------------------------------------------- /mirror_api_server/res/cat4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/res/cat4.png -------------------------------------------------------------------------------- /mirror_api_server/res/cat5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/res/cat5.png -------------------------------------------------------------------------------- /mirror_api_server/res/cat6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/res/cat6.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | _client_secrets.json 3 | mirror_api_server/endpoints_proto_datastore 4 | packages 5 | pubspec.lock 6 | -------------------------------------------------------------------------------- /mirror_api_server/service/static/images/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/service/static/images/cat.png -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/red.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/corner.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/error.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/reply.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/reply.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/share.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/talk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/talk.png -------------------------------------------------------------------------------- /mirror_api_server/service/static/images/sepia.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/service/static/images/sepia.jpg -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/blue.png -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/card.png -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/green.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/map_dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/map_dot.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/navigate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/navigate.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/success.png -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/indigo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/indigo.png -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/orange.png -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/signin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/signin.png -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/violet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/violet.png -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/yellow.png -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/static/images/gplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/hangout-comment-tracker/static/images/gplus.png -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/images/read_aloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/mirror_api_server/emulator/static/images/read_aloud.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "endpoints-proto-datastore"] 2 | path = endpoints-proto-datastore 3 | url = https://github.com/GoogleCloudPlatform/endpoints-proto-datastore.git 4 | -------------------------------------------------------------------------------- /examples/colours-of-the-world/static/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/colours-of-the-world/static/images/background.png -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/static/images/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/hangout-comment-tracker/static/images/comment.png -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/static/images/noimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/hangout-comment-tracker/static/images/noimage.png -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/static/images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/hangout-comment-tracker/static/images/search.png -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/static/images/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/hangout-comment-tracker/static/images/spinner.gif -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/static/images/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/hangout-comment-tracker/static/images/youtube.png -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/static/images/youtube_author.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inspect/mirror-api/master/examples/hangout-comment-tracker/static/images/youtube_author.png -------------------------------------------------------------------------------- /mirror_api_server/lib/oauth2client/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "1.1" 2 | 3 | GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth' 4 | GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke' 5 | GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token' 6 | -------------------------------------------------------------------------------- /CONTRIBUTORS.md: -------------------------------------------------------------------------------- 1 | [Danny Hermes](https://github.com/dhermes) 2 | 3 | [Gerwin Sturm](https://github.com/Scarygami) 4 | 5 | [Greg Roberts](https://github.com/acroyogi) 6 | 7 | [Martin Matysiak](https://github.com/kaktus621) 8 | 9 | [Tim Wintle](https://github.com/timwintle) 10 | -------------------------------------------------------------------------------- /examples/colours-of-the-world/index.yaml: -------------------------------------------------------------------------------- 1 | indexes: 2 | 3 | - kind: Submission 4 | properties: 5 | - name: colour 6 | - name: date 7 | direction: desc 8 | 9 | - kind: Submission 10 | ancestor: yes 11 | properties: 12 | - name: date 13 | direction: desc 14 | -------------------------------------------------------------------------------- /examples/colours-of-the-world/lib/oauth2client/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "1.1" 2 | 3 | GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth' 4 | GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke' 5 | GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token' 6 | -------------------------------------------------------------------------------- /examples/hangout-comment-tracker/lib/oauth2client/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "1.1" 2 | 3 | GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth' 4 | GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke' 5 | GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token' 6 | -------------------------------------------------------------------------------- /examples/hangout_companion/pubspec.yaml.real: -------------------------------------------------------------------------------- 1 | name: hangout_companion 2 | version: 0.0.1-dev 3 | description: An example of a Hangout application that accesses the Mirror API. 4 | 5 | dependencies: 6 | browser: any 7 | google_plus_v1_api: any 8 | google_mirror_v1_api: any 9 | hangouts_api: 10 | git: git://github.com/Scarygami/dart_hangouts_api.git 11 | -------------------------------------------------------------------------------- /utils/README.md: -------------------------------------------------------------------------------- 1 | 1. Copy those two files to `.git/hooks`. 2 | 2. Create copies of the template `client_secrets.json` files and name them `_client_secrets.json` 3 | 3. Edit the `client_secrets.json` files with your actual data. 4 | 4. Commit as you normally would, the pre/post commit scripts will make 5 | sure that only the template files are commited and not your actual secrets. -------------------------------------------------------------------------------- /mirror_api_server/demos/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | DEMOS = ["add_a_cat", "instaglass", "friend_finder", "check_in"] 3 | 4 | demo_services = [] 5 | for demo in DEMOS: 6 | demo_services.append(__import__("demos." + demo, fromlist="*")) 7 | 8 | DEMO_ROUTES = [] 9 | for demo_service in demo_services: 10 | if hasattr(demo_service, "ROUTES"): 11 | DEMO_ROUTES.extend(demo_service.ROUTES) 12 | -------------------------------------------------------------------------------- /examples/hangout_companion/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: hangout_companion 2 | version: 0.0.1-dev 3 | description: An example of a Hangout application that accesses the Mirror API. 4 | 5 | dependencies: 6 | browser: any 7 | google_plus_v1_api: any 8 | google_mirror_v1_api: 9 | path: ../../../discovery_api_dart_client_generator/output/dart_mirror_v1_api_client 10 | hangouts_api: 11 | git: git://github.com/Scarygami/dart_hangouts_api.git 12 | -------------------------------------------------------------------------------- /examples/hangout_companion/pubspec.yaml.test: -------------------------------------------------------------------------------- 1 | name: hangout_companion 2 | version: 0.0.1-dev 3 | description: An example of a Hangout application that accesses the Mirror API. 4 | 5 | dependencies: 6 | browser: any 7 | google_plus_v1_api: any 8 | google_mirror_v1_api: 9 | path: ../../../discovery_api_dart_client_generator/output/dart_mirror_v1_api_client 10 | hangouts_api: 11 | git: git://github.com/Scarygami/dart_hangouts_api.git 12 | -------------------------------------------------------------------------------- /mirror_api_server/client_secrets.json: -------------------------------------------------------------------------------- 1 | { 2 | "web": { 3 | "client_id": "YOUR_CLIENT_ID", 4 | "client_secret": "YOUR_CLIENT_SECRET", 5 | "api_key": "YOUR_API_KEY", 6 | "session_secret": "RANDOM_SESSION_SECRET", 7 | "additional_client_ids": ["CLIENT_ID1", "CLIENT_ID2"], 8 | "auth_uri": "https://accounts.google.com/o/oauth2/auth", 9 | "token_uri": "https://accounts.google.com/o/oauth2/token", 10 | "redirect_uris": ["postmessage"] 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mirror_api_server/emulator/static/inner.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |Welcome to Friend Finder
" 31 | "
52 | Gerwin Sturm
15 |
27 | Sign in to connect with your Glass™ device and
start seeing the world in different colours.
Welcome to Add a Cat!
" 48 | "Welcome to Instaglass!
" 48 | "