Google mirror api developer zone
Time to master the art of working with Google Glass
Get the glimpse of future
Lets get your hands dirty with one of the best invention of our times.
Lets rock the world with best wearable tech of our time.
Lets create some amazing experiences for all
This document is the Flask documentation, which provides information on how to use the Flask web framework. It covers topics like installation, basic usage, routing, templates, testing, debugging errors, configuration, signals, pluggable views, application and request contexts, modular applications with blueprints, extensions, and patterns for building larger Flask applications. The documentation contains tutorials, API references, and best practices for developing Flask applications.
This document provides an overview and examples of using Cloud Script, a Platform-as-a-Service company's server-side scripting solution. It recaps the basics of creating and calling scripts, and provides scenarios for validating player actions, granting rewards, messaging between players, and making external API calls. Examples show how to validate moves, grant items for completing levels, send messages stored in shared group data, and make authorized calls to third-party APIs using OAuth tokens obtained via Cloud Script. Resources for learning more about Cloud Script capabilities and examples are also listed.
Pragmatic Security and Rugged DevOps - SXSW 2015James Wickett
From SXSW Interactive 2015
Writing code that works is hard. Writing rugged code that can stand the test of time is even harder. This difficulty is often compounded by crunched timelines and fast cycles that prioritize new features. Add in evolving business needs and new technology and it becomes confusing to know what to do and how to integrate security into your application.
This workshop brings in some of the top developers and application security practitioners to help you ruggedize your end-to-end development lifecycle from code commit to running system.
Three Takeaways:
1. You will learn pragmatic approaches and tooling that will affect your development processes and delivery pipelines.
2. Armed with tools and ideas for monitoring your operational and runtime security.
3. You will walk away with code examples and tools that you can put into practice right away for security and rugged testing.
http://schedule.sxsw.com/2015/events/event_IAP35935
Caren Pinto is applying for a single entry visa to Egypt to complete a 6-week internship in Cairo from April 7th to May 22nd organized through AIESEC in Mumbai. She provides her passport details and confirms she is enclosing required documents like bank statements, return tickets, invitation letter, and passport copy to support her visa application. She requests the visa officer grant her a single entry visa to Egypt.
Future of Finance - Current Problems and Future > How Blockchain can help you bank the un banked population of the world and provide the finance and investment options. Visit https://www.solulab.com for more details
Future is here, tech innovations and tech solutions you must be aware of to become and stay relevant, flying cars, autonomous vehicles, connected economy, importance of QA, community, humans and robots
The document summarizes the 6th annual DevFestAhm conference organized by GDG Ahmedabad. It provides details on the number of events (15), participants (over 1000), average female ratio (28%), past participants now serving as speakers (10+), and reach through social media platforms. It highlights values added like stories from participants. The conference included dedicated booths, keynotes, and encouraged diversity, communication, collaboration and creativity.
This document is the Flask documentation, which provides information on how to use the Flask web framework. It covers topics like installation, basic usage, routing, templates, testing, debugging errors, configuration, signals, pluggable views, application and request contexts, modular applications with blueprints, extensions, and patterns for building larger Flask applications. The documentation contains tutorials, API references, and best practices for developing Flask applications.
This document provides an overview and examples of using Cloud Script, a Platform-as-a-Service company's server-side scripting solution. It recaps the basics of creating and calling scripts, and provides scenarios for validating player actions, granting rewards, messaging between players, and making external API calls. Examples show how to validate moves, grant items for completing levels, send messages stored in shared group data, and make authorized calls to third-party APIs using OAuth tokens obtained via Cloud Script. Resources for learning more about Cloud Script capabilities and examples are also listed.
Pragmatic Security and Rugged DevOps - SXSW 2015James Wickett
From SXSW Interactive 2015
Writing code that works is hard. Writing rugged code that can stand the test of time is even harder. This difficulty is often compounded by crunched timelines and fast cycles that prioritize new features. Add in evolving business needs and new technology and it becomes confusing to know what to do and how to integrate security into your application.
This workshop brings in some of the top developers and application security practitioners to help you ruggedize your end-to-end development lifecycle from code commit to running system.
Three Takeaways:
1. You will learn pragmatic approaches and tooling that will affect your development processes and delivery pipelines.
2. Armed with tools and ideas for monitoring your operational and runtime security.
3. You will walk away with code examples and tools that you can put into practice right away for security and rugged testing.
http://schedule.sxsw.com/2015/events/event_IAP35935
Caren Pinto is applying for a single entry visa to Egypt to complete a 6-week internship in Cairo from April 7th to May 22nd organized through AIESEC in Mumbai. She provides her passport details and confirms she is enclosing required documents like bank statements, return tickets, invitation letter, and passport copy to support her visa application. She requests the visa officer grant her a single entry visa to Egypt.
Future of Finance - Current Problems and Future > How Blockchain can help you bank the un banked population of the world and provide the finance and investment options. Visit https://www.solulab.com for more details
Future is here, tech innovations and tech solutions you must be aware of to become and stay relevant, flying cars, autonomous vehicles, connected economy, importance of QA, community, humans and robots
The document summarizes the 6th annual DevFestAhm conference organized by GDG Ahmedabad. It provides details on the number of events (15), participants (over 1000), average female ratio (28%), past participants now serving as speakers (10+), and reach through social media platforms. It highlights values added like stories from participants. The conference included dedicated booths, keynotes, and encouraged diversity, communication, collaboration and creativity.
This keynote presentation provides an overview of recent technology headlines and trends, predictions for 2017, and highlights top developers and technologies to watch. It discusses developments in areas like Android, mobile cameras, wireless charging, AI, blockchain, IoT, and more. The presentation concludes by recognizing several influential developers in both web and mobile domains.
The document discusses recent developments in mobile technologies and ecosystems, including upcoming features for Google Translate, Google Live Channels for Android TV, driver's licenses being available on smartphones in Iowa. It also discusses Android L features and challenges, monetization strategies for apps, and predictions for the future of mobile devices and technologies. The document appears to be notes from a conference on mobile technologies, outlining topics discussed and upcoming speakers.
Leo’s Fortune by 1337 and Senri
Day One by Bloom Built
Blek by kunabi brother (Denis and Davor Mikan)
Yahoo News Digest by Yahoo
Threes! by Sirvo
Cinemagraph Pro by Flixel Photos
Device 6 by Simogo
Storehouse-Visual Storytelling by Storehouse Media
Sky Guide by Fifth Star Labs
Monument Valley by ustwo Studio
Student Winners
PanoPerfect by HalfPeeled LLC and TwoBros
Addimal Adventure by Teachley
The document discusses various topics related to mobile apps and monetization strategies. It covers projections for mobile app downloads and revenue growth in areas like video and health apps. It then discusses key metrics for apps like new users, retention, and what users want from their experience. Various monetization strategies for apps are outlined, including content, consumable apps, apps as a service, and additional in-app purchases. Reasons why users may hesitate to purchase apps are explored. The document concludes with tips for app marketing and monetization.
This document lists several Apple services and products including Health Kit, Handoff, Smart Typing, Family Sharing, Notifications, Widgets, Smart Search, Home Kit, iCloud Drive, and Enterprise features. It appears to be an overview of different areas within Apple's software and services portfolio.
Google Glass Development Kit - Developer ZoneUtpal Betai
The document provides information about building applications for Google Glass using the Glass Development Kit (GDK). It discusses the different options for building the user interface, including live cards, static cards, and immersions. It also covers touch gestures, creating menus, and other development topics. The GDK allows access to hardware features and full control over the user interface compared to the Mirror API.
Google Mirror API, What is Google Glass, How to Develop for Google Glass, Android Developer guide to everything Google Glass, Glassware, Make the next big thing for Android, Live Cards, Past, Present and Future of Google Glass.
Android Kitkat Latest Armour from Technology Powerhouse Google. A sure shot winner in fierce smart device race. Its time to get your now. Get on this bandwagon and experience the future.
>> What is App Monetization
>> App Monetization Models
>> Apple iTunes App Store
>> Amazon Android App Store
>> Google Play Store
>> Sample Apps & Monetization Strategy
This document proposes a concept to monetize live mobile advertising by mounting LED display panels on vehicles like cabs to broadcast video advertisements. The panels would be connected to cameras and cloud-based software to stream ads. Advertisers would pay a monthly fee per vehicle, while vehicle owners would earn a small amount per km traveled. If successful, it could provide an alternate revenue stream for cab owners and target ads to audiences in crowded areas cost-effectively. However, concerns include audiences' inability to turn off the ads and maintaining audience engagement.
The document summarizes the Twitter API and how to integrate it with PHP. It includes sections on the various Twitter API methods for timelines, statuses, users, lists, direct messages, spam reporting, saved searches, OAuth authentication and more. It also provides code examples for functions to get latest trends, display data in arrays, show a user's friends and followers, post a tweet, make URLs shorter with Bitly, get a user's last status, and linkify URLs in text.
Building Production Ready Search Pipelines with Spark and MilvusZilliz
Spark is the widely used ETL tool for processing, indexing and ingesting data to serving stack for search. Milvus is the production-ready open-source vector database. In this talk we will show how to use Spark to process unstructured data to extract vector representations, and push the vectors to Milvus vector database for search serving.
Taking AI to the Next Level in Manufacturing.pdfssuserfac0301
Read Taking AI to the Next Level in Manufacturing to gain insights on AI adoption in the manufacturing industry, such as:
1. How quickly AI is being implemented in manufacturing.
2. Which barriers stand in the way of AI adoption.
3. How data quality and governance form the backbone of AI.
4. Organizational processes and structures that may inhibit effective AI adoption.
6. Ideas and approaches to help build your organization's AI strategy.
OpenID AuthZEN Interop Read Out - AuthorizationDavid Brossard
During Identiverse 2024 and EIC 2024, members of the OpenID AuthZEN WG got together and demoed their authorization endpoints conforming to the AuthZEN API
Generating privacy-protected synthetic data using Secludy and MilvusZilliz
During this demo, the founders of Secludy will demonstrate how their system utilizes Milvus to store and manipulate embeddings for generating privacy-protected synthetic data. Their approach not only maintains the confidentiality of the original data but also enhances the utility and scalability of LLMs under privacy constraints. Attendees, including machine learning engineers, data scientists, and data managers, will witness first-hand how Secludy's integration with Milvus empowers organizations to harness the power of LLMs securely and efficiently.
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfMalak Abu Hammad
Discover how MongoDB Atlas and vector search technology can revolutionize your application's search capabilities. This comprehensive presentation covers:
* What is Vector Search?
* Importance and benefits of vector search
* Practical use cases across various industries
* Step-by-step implementation guide
* Live demos with code snippets
* Enhancing LLM capabilities with vector search
* Best practices and optimization strategies
Perfect for developers, AI enthusiasts, and tech leaders. Learn how to leverage MongoDB Atlas to deliver highly relevant, context-aware search results, transforming your data retrieval process. Stay ahead in tech innovation and maximize the potential of your applications.
#MongoDB #VectorSearch #AI #SemanticSearch #TechInnovation #DataScience #LLM #MachineLearning #SearchTechnology
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
This keynote presentation provides an overview of recent technology headlines and trends, predictions for 2017, and highlights top developers and technologies to watch. It discusses developments in areas like Android, mobile cameras, wireless charging, AI, blockchain, IoT, and more. The presentation concludes by recognizing several influential developers in both web and mobile domains.
The document discusses recent developments in mobile technologies and ecosystems, including upcoming features for Google Translate, Google Live Channels for Android TV, driver's licenses being available on smartphones in Iowa. It also discusses Android L features and challenges, monetization strategies for apps, and predictions for the future of mobile devices and technologies. The document appears to be notes from a conference on mobile technologies, outlining topics discussed and upcoming speakers.
Leo’s Fortune by 1337 and Senri
Day One by Bloom Built
Blek by kunabi brother (Denis and Davor Mikan)
Yahoo News Digest by Yahoo
Threes! by Sirvo
Cinemagraph Pro by Flixel Photos
Device 6 by Simogo
Storehouse-Visual Storytelling by Storehouse Media
Sky Guide by Fifth Star Labs
Monument Valley by ustwo Studio
Student Winners
PanoPerfect by HalfPeeled LLC and TwoBros
Addimal Adventure by Teachley
The document discusses various topics related to mobile apps and monetization strategies. It covers projections for mobile app downloads and revenue growth in areas like video and health apps. It then discusses key metrics for apps like new users, retention, and what users want from their experience. Various monetization strategies for apps are outlined, including content, consumable apps, apps as a service, and additional in-app purchases. Reasons why users may hesitate to purchase apps are explored. The document concludes with tips for app marketing and monetization.
This document lists several Apple services and products including Health Kit, Handoff, Smart Typing, Family Sharing, Notifications, Widgets, Smart Search, Home Kit, iCloud Drive, and Enterprise features. It appears to be an overview of different areas within Apple's software and services portfolio.
Google Glass Development Kit - Developer ZoneUtpal Betai
The document provides information about building applications for Google Glass using the Glass Development Kit (GDK). It discusses the different options for building the user interface, including live cards, static cards, and immersions. It also covers touch gestures, creating menus, and other development topics. The GDK allows access to hardware features and full control over the user interface compared to the Mirror API.
Google Mirror API, What is Google Glass, How to Develop for Google Glass, Android Developer guide to everything Google Glass, Glassware, Make the next big thing for Android, Live Cards, Past, Present and Future of Google Glass.
Android Kitkat Latest Armour from Technology Powerhouse Google. A sure shot winner in fierce smart device race. Its time to get your now. Get on this bandwagon and experience the future.
>> What is App Monetization
>> App Monetization Models
>> Apple iTunes App Store
>> Amazon Android App Store
>> Google Play Store
>> Sample Apps & Monetization Strategy
This document proposes a concept to monetize live mobile advertising by mounting LED display panels on vehicles like cabs to broadcast video advertisements. The panels would be connected to cameras and cloud-based software to stream ads. Advertisers would pay a monthly fee per vehicle, while vehicle owners would earn a small amount per km traveled. If successful, it could provide an alternate revenue stream for cab owners and target ads to audiences in crowded areas cost-effectively. However, concerns include audiences' inability to turn off the ads and maintaining audience engagement.
The document summarizes the Twitter API and how to integrate it with PHP. It includes sections on the various Twitter API methods for timelines, statuses, users, lists, direct messages, spam reporting, saved searches, OAuth authentication and more. It also provides code examples for functions to get latest trends, display data in arrays, show a user's friends and followers, post a tweet, make URLs shorter with Bitly, get a user's last status, and linkify URLs in text.
Building Production Ready Search Pipelines with Spark and MilvusZilliz
Spark is the widely used ETL tool for processing, indexing and ingesting data to serving stack for search. Milvus is the production-ready open-source vector database. In this talk we will show how to use Spark to process unstructured data to extract vector representations, and push the vectors to Milvus vector database for search serving.
Taking AI to the Next Level in Manufacturing.pdfssuserfac0301
Read Taking AI to the Next Level in Manufacturing to gain insights on AI adoption in the manufacturing industry, such as:
1. How quickly AI is being implemented in manufacturing.
2. Which barriers stand in the way of AI adoption.
3. How data quality and governance form the backbone of AI.
4. Organizational processes and structures that may inhibit effective AI adoption.
6. Ideas and approaches to help build your organization's AI strategy.
OpenID AuthZEN Interop Read Out - AuthorizationDavid Brossard
During Identiverse 2024 and EIC 2024, members of the OpenID AuthZEN WG got together and demoed their authorization endpoints conforming to the AuthZEN API
Generating privacy-protected synthetic data using Secludy and MilvusZilliz
During this demo, the founders of Secludy will demonstrate how their system utilizes Milvus to store and manipulate embeddings for generating privacy-protected synthetic data. Their approach not only maintains the confidentiality of the original data but also enhances the utility and scalability of LLMs under privacy constraints. Attendees, including machine learning engineers, data scientists, and data managers, will witness first-hand how Secludy's integration with Milvus empowers organizations to harness the power of LLMs securely and efficiently.
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfMalak Abu Hammad
Discover how MongoDB Atlas and vector search technology can revolutionize your application's search capabilities. This comprehensive presentation covers:
* What is Vector Search?
* Importance and benefits of vector search
* Practical use cases across various industries
* Step-by-step implementation guide
* Live demos with code snippets
* Enhancing LLM capabilities with vector search
* Best practices and optimization strategies
Perfect for developers, AI enthusiasts, and tech leaders. Learn how to leverage MongoDB Atlas to deliver highly relevant, context-aware search results, transforming your data retrieval process. Stay ahead in tech innovation and maximize the potential of your applications.
#MongoDB #VectorSearch #AI #SemanticSearch #TechInnovation #DataScience #LLM #MachineLearning #SearchTechnology
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceIndexBug
Imagine a world where machines not only perform tasks but also learn, adapt, and make decisions. This is the promise of Artificial Intelligence (AI), a technology that's not just enhancing our lives but revolutionizing entire industries.
HCL Notes and Domino License Cost Reduction in the World of DLAUpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-and-domino-license-cost-reduction-in-the-world-of-dlau/
The introduction of DLAU and the CCB & CCX licensing model caused quite a stir in the HCL community. As a Notes and Domino customer, you may have faced challenges with unexpected user counts and license costs. You probably have questions on how this new licensing approach works and how to benefit from it. Most importantly, you likely have budget constraints and want to save money where possible. Don’t worry, we can help with all of this!
We’ll show you how to fix common misconfigurations that cause higher-than-expected user counts, and how to identify accounts which you can deactivate to save money. There are also frequent patterns that can cause unnecessary cost, like using a person document instead of a mail-in for shared mailboxes. We’ll provide examples and solutions for those as well. And naturally we’ll explain the new licensing model.
Join HCL Ambassador Marc Thomas in this webinar with a special guest appearance from Franz Walder. It will give you the tools and know-how to stay on top of what is going on with Domino licensing. You will be able lower your cost through an optimized configuration and keep it low going forward.
These topics will be covered
- Reducing license cost by finding and fixing misconfigurations and superfluous accounts
- How do CCB and CCX licenses really work?
- Understanding the DLAU tool and how to best utilize it
- Tips for common problem areas, like team mailboxes, functional/test users, etc
- Practical examples and best practices to implement right away
Skybuffer SAM4U tool for SAP license adoptionTatiana Kojar
Manage and optimize your license adoption and consumption with SAM4U, an SAP free customer software asset management tool.
SAM4U, an SAP complimentary software asset management tool for customers, delivers a detailed and well-structured overview of license inventory and usage with a user-friendly interface. We offer a hosted, cost-effective, and performance-optimized SAM4U setup in the Skybuffer Cloud environment. You retain ownership of the system and data, while we manage the ABAP 7.58 infrastructure, ensuring fixed Total Cost of Ownership (TCO) and exceptional services through the SAP Fiori interface.
Have you ever been confused by the myriad of choices offered by AWS for hosting a website or an API?
Lambda, Elastic Beanstalk, Lightsail, Amplify, S3 (and more!) can each host websites + APIs. But which one should we choose?
Which one is cheapest? Which one is fastest? Which one will scale to meet our needs?
Join me in this session as we dive into each AWS hosting service to determine which one is best for your scenario and explain why!
Digital Marketing Trends in 2024 | Guide for Staying AheadWask
https://www.wask.co/ebooks/digital-marketing-trends-in-2024
Feeling lost in the digital marketing whirlwind of 2024? Technology is changing, consumer habits are evolving, and staying ahead of the curve feels like a never-ending pursuit. This e-book is your compass. Dive into actionable insights to handle the complexities of modern marketing. From hyper-personalization to the power of user-generated content, learn how to build long-term relationships with your audience and unlock the secrets to success in the ever-shifting digital landscape.
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Speck&Tech
ABSTRACT: A prima vista, un mattoncino Lego e la backdoor XZ potrebbero avere in comune il fatto di essere entrambi blocchi di costruzione, o dipendenze di progetti creativi e software. La realtà è che un mattoncino Lego e il caso della backdoor XZ hanno molto di più di tutto ciò in comune.
Partecipate alla presentazione per immergervi in una storia di interoperabilità, standard e formati aperti, per poi discutere del ruolo importante che i contributori hanno in una comunità open source sostenibile.
BIO: Sostenitrice del software libero e dei formati standard e aperti. È stata un membro attivo dei progetti Fedora e openSUSE e ha co-fondato l'Associazione LibreItalia dove è stata coinvolta in diversi eventi, migrazioni e formazione relativi a LibreOffice. In precedenza ha lavorato a migrazioni e corsi di formazione su LibreOffice per diverse amministrazioni pubbliche e privati. Da gennaio 2020 lavora in SUSE come Software Release Engineer per Uyuni e SUSE Manager e quando non segue la sua passione per i computer e per Geeko coltiva la sua curiosità per l'astronomia (da cui deriva il suo nickname deneb_alpha).
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc
How does your privacy program stack up against your peers? What challenges are privacy teams tackling and prioritizing in 2024?
In the fifth annual Global Privacy Benchmarks Survey, we asked over 1,800 global privacy professionals and business executives to share their perspectives on the current state of privacy inside and outside of their organizations. This year’s report focused on emerging areas of importance for privacy and compliance professionals, including considerations and implications of Artificial Intelligence (AI) technologies, building brand trust, and different approaches for achieving higher privacy competence scores.
See how organizational priorities and strategic approaches to data security and privacy are evolving around the globe.
This webinar will review:
- The top 10 privacy insights from the fifth annual Global Privacy Benchmarks Survey
- The top challenges for privacy leaders, practitioners, and organizations in 2024
- Key themes to consider in developing and maintaining your privacy program
In the rapidly evolving landscape of technologies, XML continues to play a vital role in structuring, storing, and transporting data across diverse systems. The recent advancements in artificial intelligence (AI) present new methodologies for enhancing XML development workflows, introducing efficiency, automation, and intelligent capabilities. This presentation will outline the scope and perspective of utilizing AI in XML development. The potential benefits and the possible pitfalls will be highlighted, providing a balanced view of the subject.
We will explore the capabilities of AI in understanding XML markup languages and autonomously creating structured XML content. Additionally, we will examine the capacity of AI to enrich plain text with appropriate XML markup. Practical examples and methodological guidelines will be provided to elucidate how AI can be effectively prompted to interpret and generate accurate XML markup.
Further emphasis will be placed on the role of AI in developing XSLT, or schemas such as XSD and Schematron. We will address the techniques and strategies adopted to create prompts for generating code, explaining code, or refactoring the code, and the results achieved.
The discussion will extend to how AI can be used to transform XML content. In particular, the focus will be on the use of AI XPath extension functions in XSLT, Schematron, Schematron Quick Fixes, or for XML content refactoring.
The presentation aims to deliver a comprehensive overview of AI usage in XML development, providing attendees with the necessary knowledge to make informed decisions. Whether you’re at the early stages of adopting AI or considering integrating it in advanced XML development, this presentation will cover all levels of expertise.
By highlighting the potential advantages and challenges of integrating AI with XML development tools and languages, the presentation seeks to inspire thoughtful conversation around the future of XML development. We’ll not only delve into the technical aspects of AI-powered XML development but also discuss practical implications and possible future directions.
2. API Usage Stories
The Mirror API provides a set of building blocks that you can use to build services for
Glass. Because Glass services are probably different than other software you have
developed, it may not be obvious how to fit features of the Mirror API together.
Many services fall into a few categories of API usage. Here are some stories that
illustrate how to combine the features of the Mirror API to create Glass services.
3. Cat Facts
Delivering content to the Glass timeline is a simple yet powerful use of the Google
Mirror API. The Cat Facts sample Glassware delivers facts about cats to users and
could potentially follow this flow:
Your user visits your web application and subscribes by authenticating with OAuth
2.0.
Every hour, on the hour, your service delivers a new Cat Fact to each of your users'
Glass.
4.
5.
6. Timeline Items
When users interact with their timeline, the main way they receive information is in the
form of timeline items, otherwise known as cards.
Timeline cards display content from various Glassware and swiping forward and
backward on Glass reveals more cards in the past and future.
You can insert, update, read, and delete timeline cards from a timeline. In addition, you
can attach objects to a timeline card, such as a location or media.
7. Inserting a timeline item
To insert a timeline item, POST a JSON representation of a timeline item to the REST
endpoint.
Note: Timeline items last for seven days on a user's Glass and are deleted from Google's
servers if not updated for ten days. Most of the fields in a timeline item are optional.
In its simplest form, a timeline item contains only a short text message, like in this
example:
TimelineItem timelineItem = new TimelineItem();
timelineItem.setText("Hello world");
service.timeline().insert(timelineItem).execute();
9. Inserting a timeline item with an attachment
A picture is worth a thousand words, which is a lot more than you can fit into a timeline
item. To this end, you can also attach images and video to a timeline item. Here's an
example of how to insert a timeline item with a photo attachment:
TimelineItem timelineItem = new TimelineItem();
timelineItem.setText("Hello world");
InputStreamContent mediaContent = new
InputStreamContent(contentType, attachment);
service.timeline().insert(timelineItem, mediaContent).execute();
10. Attaching video
If you are attaching video files to your timeline items, we recommend that you stream
the video instead of uploading the entire payload at once.
The Google Mirror API supports streaming with HTTP live streaming, progressive
download, and the real time streaming protocol (RTSP). RTSP is frequently blocked by
firewalls, so use the other options when possible.
To stream video, use the PLAY_VIDEO built-in menu item and specify the video's
URL to be the menu item's payload.
See Adding
built-in menu items and supported media formats for more
information.
11. Bundling
Bundling allows you to group related but distinct items together, like for individual
messages in an email thread.
Bundles have a main cover card that a user taps to display a sub-timeline that contains the
other cards in the bundle. Bundles are distinguished from normal timeline cards by a page
curl in the upper right corner of the bundle's cover card.
12. Menu Items
Delivering content is only half of the story. Most interesting services also allow
users to interact with timeline cards through menu items.
Menu items allow users to request actions that are related to the timeline card,
and come in two types: built-in menu items and custom menu items.
Built-in menu items provide access to special functionalities provided by Glass,
such as reading a timeline card aloud, navigating to a location, sharing an image, or
replying to a message:
Custom menu items allow your application to expose behavior that is specific to
your Glassware, and you can also provide a menu item icon to match your
branding.
13. Defining custom menu items
Built-in actions may not always be enough. Many services need to expose their own
specific menu items. This is where custom actions come into play.
Create a custom menu item by specifying a menuItem.action of CUSTOM and a
menuItem.id.
When your user triggers one of your custom menu items, a notification is sent to your
service with the menuItem.id populated. This allows you to determine the source of the
notification.
You must also populate menuItem.menuValue to specify an iconUrl and displayName
that will appear on the glass device.
15. Subscriptions
The Mirror API allows you to subscribe to notifications that are sent when the user takes
specific actions on a Timeline Item or when the user location has been updated.
When you subscribe to a notification, you provide a callback URL that processes the
notification.
Receiving notifications
A notification from the Mirror API is sent as a POST request to the subscribed
endpoint containing a JSON request body.
{
"collection": "timeline",
"itemId": "3hidvm0xez6r8_dacdb3103b8b604_h8rpllg",
"operation": "UPDATE",
"userToken": "harold_penguin",
"verifyToken": "random_hash_to_verify_referer",
"userActions": [
{
"type": "<TYPE>",
"payload": "<PAYLOAD>"
}
]
}
16. Notification types
The Mirror API sends a different notification payload for different events.
Shared timeline item
The user has shared a timeline item with your Glassware.
{
"collection": "timeline",
"itemId": "3hidvm0xez6r8_dacdb3103b8b604_h8rpllg",
"operation": "UPDATE",
"userToken": "harold_penguin",
"verifyToken": "random_hash_to_verify_referer",
"userActions": [
{
"type": "SHARE"
}
]
}
17. Reply
The user has replied to your timeline item using the built-in REPLY menu item:
{
"collection": "timeline",
"itemId": "3hidvm0xez6r8_dacdb3103b8b604_h8rpllg",
"operation": "INSERT",
"userToken": "harold_penguin",
"verifyToken": "random_hash_to_verify_referer",
"userActions": [
{
"type": "REPLY"
}
]
}
18. Delete
The user has deleted a timeline item:
{
"collection": "timeline",
"itemId": "3hidvm0xez6r8_dacdb3103b8b604_h8rpllg",
"operation": "DELETE",
"userToken": "harold_penguin",
"verifyToken": "random_hash_to_verify_referer",
"userActions": [
{
"type": "DELETE"
}
]
}
19. Custom menu item selected
The user has selected a custom menu item set by your service:
{
"collection": "timeline",
"itemId": "3hidvm0xez6r8_dacdb3103b8b604_h8rpllg",
"operation": "UPDATE",
"userToken": "harold_penguin",
"userActions": [
{
"type": "CUSTOM",
"payload": "PING"
}
]
}
20. Location update
A new location is available for the current user:
{
"collection": "locations",
"itemId": "latest",
"operation": "UPDATE",
"userToken": "harold_penguin",
"verifyToken": "random_hash_to_verify_referer"
}
21. Voice command
Your user has activated a voice command, for example: "Ok Glass, take a
note, Cat Stream, Chipotle's birthday is tomorrow".
The following notification is sent to your Glassware:
{
"collection": "timeline",
"operation": "UPDATE",
"userToken": "chipotle's_owner",
"verifyToken": "mew mew mew",
"itemId": "<ITEM_ID>",
"userActions": [
{“type”: "LAUNCH"}
]
}
22. Location
You can use the Google Mirror API to observe the user's location in timeline items,
request their last known location directly, and subscribe to periodic location updates.
You can also deliver pre-rendered map images in timeline cards by giving the Mirror API
the coordinates to draw.
Note: Retrieving users' location requires the additional
https://www.googleapis.com/auth/glass.location scope.
23. Subscribing to location updates
Similar to subscribing to timeline updates, you can subscribe to location updates by
subscribing to the locations collection.
POST /mirror/v1/subscriptions HTTP/1.1
Authorization: Bearer {auth token}
Content-Type: application/json
Content-Length: {length}
{
"collection": "locations",
"userToken": "harold_penguin",
"verifyToken": "random_hash_to_verify_referer",
"callbackUrl": "https://example.com/notify/callback"
}
25. Contacts
Contacts can be people or Glassware that users can share timeline items with. By
default, Glassware cannot access timeline items that it did not create. Sharing to
contacts allows users to share a timeline item with Glassware that did not create
that timeline item.
There are two ways that your Glassware can use contacts:
Allow users to share your timeline items with other contacts: Add the SHARE builtin menu item to a timeline card. When users tap the share menu item, Glass displays
a list of possible contacts to share with. See the menu items developer guide for
more information on how to add built-in menu items.
Allow users to share timeline items with your Glassware: Create a contact that
represents your Glassware. When users want to share a timeline card, your contact
appears as an option. You can also declare a list of acceptable MIME types so that
your contact only appears for cards that you are interested in. To get notified of
when users share a timeline card with your contact, you can subscribe to timeline
notifications.
27. Declaring voice menu commands
You can let users share timeline items with your Contact by inserting a voice
command in the "OK Glass" menu. When triggered, voice commands share a
timeline item with your contact that includes a transcription of your user's speech.
You can declare the following voice commands for your contact:
"take a note"
"post an update"
28. Create a client ID and client secret
First, you need to activate the Google Mirror API for your app. You can do this
for your API project in the Google APIs Console.
Create an API project in the Google APIs Console.
Select the Services tab in your API project, and enable the Google Mirror API.
Select the API Access tab in your API project, and click Create an OAuth 2.0
client ID.
In the Branding Information section, provide a name for your application (e.g.
"My Glass service"), and click Next. Providing a product logo is optional.
In the Client ID Settings section, do the following:
Select Web application for the Application type.
Click the more options link next to the heading, Your site or hostname.
List your hostname in the Authorized Redirect URIs and JavaScript origins
fields.
Click Create Client ID.
In the API Access page, locate the section Client ID for Web applications and
note the Client ID and Client Secret values.