Interest in the Windows Phone 7 platform is growing quickly and the need for apps is increasing faster still. However, not everything related to a consumer's Live profile is available on the phone natively. On Dec. 7, 2011 Microsoft released a new Windows Live SDK which allows access to Calendars, Contacts, Documents, and more. We'll be walking through the SDK and learn how to implement calls to Windows Live in order to support the rich functionality desired by consumers of Windows Phone 7. Danny Warren Working for InterKnowlogy in Carlsbad, CA http://www.interknowlogy.com http://blogs.interknowlogy.com/author/dannywar ren/ Twitter @dannydwarren Cloud Service Backbone of Microsoft’s consumer world Email Calendaring Documents Storage Social Networking Photos and Videos (media) More… Microsoft’s answer to the iThisAndThat, Robots, and cool RIMs A different take on the smart phone with Metro The mobile frontend of Windows Live (lite edition) Growing Market Aggregated Data Sources (check list) UserData namespace http://msdn.microsoft.com/en-us/library/ff769542(v=vs.92).aspx Scope Definitions: http://msdn.microsoft.com/en-us/library/hh220665(v=vs.92).aspx Launchers and Choosers http://msdn.microsoft.com/en-us/library/hh202972(v=vs.92).aspx http://msdn.microsoft.com/en-us/library/hh243646.aspx Live Connect Site http://msdn.microsoft.com/en-us/windowslive/default.aspx A lot of needed APIs missing on the Phone Near full access to Windows Live Calendaring Social Networking Full SkyDrive Access ▪ Audio ▪ Photos ▪ Videos ▪ Documents Think WCF Data Service (REST API) FACT – As a developer you need both sets of APIs in order to create the best experience FACT – The phone can read just about anything FACT – Live SDK can create, read, update, or delete just about anything FACT – Another name for a Microsoft Windows tutorial is 'Crash Course'! http://www.funfunnyfacts.com/Fun-Funny-Facts.html Save Single Email Choose Single Email Save Single Phone Number Choose Single Phone Number Using the Contacts API developers can access all contacts on the phone and their information including non-Windows Live contacts (contacts are read-only) http://www.jeffblankenburg.com/2011/11/08/31-days-of- mango-day-8-contacts-api/ http://msdn.microsoft.com/enus/library/microsoft.phone.userdata.contact(v=VS.92).aspx Cannot Create, Update, Delete Contacts (from a third party app) Cannot save Email and Phone Number at the same time Cannot make your bed or clean your room Can Create and Read (limited) Contacts http://msdn.microsoft.com/en- us/library/hh243648.aspx#contact http://msdn.microsoft.com/enus/library/hh243648.aspx#user Update? Delete? Read is limited Can’t read email addresses, postal addresses, work profile, or phone numbers These can be created just not read? Update and Delete are not mentioned in the documentation May or may not be supported PHONE LIVE SDK Use the Contacts API to read contact information Jailbreak your users phones to support Update and Delete from third party apps? Create Contacts Here The Appointments API allows read-only access to all events in the user’s calendars When using this API understand that there is no way to know which calendar the event is on, only which account owns that event http://msdn.microsoft.com/enus/library/microsoft.phone.userdata.appointment (v=vs.92).aspx Cannot Read a specific Calendar Cannot Create, Update, or Delete Calendars, or Events Can Create, Read, Update, and Delete Calendars, and Events http://msdn.microsoft.com/en- us/library/hh243648.aspx#calendar http://msdn.microsoft.com/enus/library/hh243648.aspx#event Access to calendars and events is restricted only by what permissions the user has on those calendars and events As a developer we can view that information Can Subscribe to Public Calendars Can only Read and Delete Recurring Events Cannot Create or Update Recurring Events PHONE Use the Appointments API to read events when the owning calendar does not matter Use the Appointments API when no data connection exists LIVE SDK Create, Update, and Delete (Calendars and Events) Use for reading when you want to read a specific calendar Subscribing to Public Calendars Inform the user they need to go to the Calendar Application to create or update a recurring event NOT POSSIBLE BUMMER LAME Cannot access any files on the phone from a third party app Create, Read, Update, Delete Folders Albums Photos Videos Audio Documents ▪ The key here is to pass the URL of the document to the WebBrowserTask and let the OS take over for us Other Files Pretty much what ever you want to do you can! LIVE SDK FTW!!!! http://winlivehelper.codeplex.com Slides are boring! Show us some code!