9 out of 14 rated this helpful Rate this topic

JavaScript API

The Live ConnectJavaScript API, together with the REST API, enables apps to read, update, and share user data by using the JavaScript programming language. The JavaScript API provides methods for signing users in and out, getting user status, subscribing to events, creating UI controls, and calling the Representational State Transfer (REST) API.

The WL object is a global object that encapsulates all functions of the JavaScript API. Your app uses the WL object to call all of the JavaScript API functions.

This section contains the following topics.

Topic Description
Using the JavaScript Library

Shows how to include the Live Connect JavaScript API in your app.

WL.api

Enables you to make calls to the Live Connect REST API.

WL.download

Makes a call to download a file from SkyDrive.

WL.Event.subscribe

Subscribes to an event.

WL.Event.unsubscribe

Unsubscribes from an event.

WL.getLoginStatus

Gets the user's status as he or she is signing in.

WL.getSession

Gets the session object for the user.

WL.init

Initializes the JavaScript API.

WL.login

Signs a user in or requests additional permissions.

WL.logout

Signs a user out.

WL.ui

Enables you to add UI elements, such as a sign-in control, to your app.

WL.upload

Makes a call to upload a file to SkyDrive.

JSONP Scenarios

Shows how to use JavaScript Objection Notation with padding (JSONP) in client-side JavaScript webpage code to interact directly with the Live Connect REST API.

 

 

 

Send comments about this topic to Microsoft

Build date: 12/5/2011

Did you find this helpful?
(1500 characters remaining)