Export (0) Print
Expand All

Working with the JavaScript Library

Ff749110.note(en-us,MSDN.10).gifNote:
Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only.

To make the best use of the JavaScript Library for Windows Live Messenger Connect in your application programming, take this opportunity to learn about how the library is organized. Several key namespaces contain the classes that you will use most often as you work with Windows Live data such as contacts, profiles, and activities. The following introduces those namespaces and the main classes that they contain.

Namespace Description

Microsoft.Live

Infrastructure classes for configuring a web application by using Messenger Connect, providing sign-in and consent functionality to users, and working with data contexts. The most important classes in this namespace are the Microsoft.Live.App and Microsoft.Live.Auth classes.

Microsoft.Live.UI

Classes that represent the SignIn (<wl:signin>) control (Microsoft.Live.UI.SignIn) and the UserInfo (<wl:userinfo>) control (Microsoft.Live.UI.UserInfo).

Microsoft.Live.Core

The Microsoft.Live.Core.Loader and Microsoft.Live.Core.Namespace classes.

Microsoft.Live.Services

Classes that support Windows Live resources such as contacts (Microsoft.Live.Services.Contact) and profiles (Microsoft.Live.Services.AboutYouProfile).

When you work with real-time data such as chat, instant messaging, and application messages, the following additional namespaces and types are of interest.

Namespace Description

Microsoft.Live.Messenger

Classes that represent Windows Live Messenger-related resources and infrastructure.

Microsoft.Live.UI.Messenger

Classes that represent Messenger-related controls such as Chat (<wl:chat>) and Presence Status (<wl:status>). Note that the Microsoft.Live.Messenger.UI namespace is available only for backward compatibility with earlier interfaces to Messenger. Use the Microsoft.Live.UI.Messenger namespace instead.

The Messenger Connect JavaScript library supports the concept of a context—an object that manages all communications with Windows Live. When you program with Messenger Connect JavaScript library, you must first obtain a context, which you then use to send requests to Windows Live. Typically, you obtain a context after a user signs in successfully. Messenger Connect supports two kinds of context.

Messenger Connect Contexts Description

Data context

Used for working with Windows Live data such as contacts, profiles, and activities. For details, see Using the Data Context.

Messenger context

Used for working with real-time data such as chat, instant messaging, and application messages. For details, see Using the Messenger Context.

Show:
© 2014 Microsoft