api calendar - TouchDevelop

Download Report

Transcript api calendar - TouchDevelop

api: calendar when you are supposed to be somewhere

Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners. touchdevelop api

calendar

o build-in concept on Windows Phone o appointments have many properties: time, location, attendees, … touchdevelop api

apis

o Social→search appointments Searches for appointments in a given time range touchdevelop api

o o o o o o o o o

apis

Appointment→start time Appointment→end time Appointment →is all day event Appointment →subject Appointment →details Appointment →status Gets your status (free, tentative, busy, outofoffice) Appointment→source Gets the source of this appointment (facebook, etc...) o o o o o o o Appointment→organizer Appointment→location Appointment→is private Appointment→attendees Gets the list of attendees. Each contact contains a name and email address.

Appointment→post to wall Posts the appointment to the wall touchdevelop api

examples

o meet now ☁ http://touchdevelop.com/uujx o meeting-o-meter ☁ http://touchdevelop.com/xfcs o My Online Meetings ☁ http://touchdevelop.com/mpuj ☀ http://channel9.msdn.com/Blogs/Peli/Peter-Heldens Creating-Scripts-with-TouchDevelop touchdevelop api

exercises

► Write a script that asks for a time, finds the meeting at that time, and posts it to the wall ► Write a script that checks if you have a meeting early next morning touchdevelop api

homework

► Write a script that checks if you have homework scheduled in the afternoon.

► Write a script that checks if you have two meetings with a common attendee today touchdevelop api