The Live Connect JavaScript API (Windows 8 and web), together with the REST API, enables apps to read, update, and share user data by using the JavaScript programming language. The JavaScript API (Windows 8 and web) 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 (Windows 8 and web). Your app uses the WL object to call all of the JavaScript API (Windows 8 and web) functions.
Note All of the following functions apply to both Windows 8 and web apps unless otherwise noted.
This section contains the following topics.
| Topic | Description |
|---|---|
| Using the JavaScript Library |
Shows how to include the Live Connect JavaScript API (Windows 8 and web) in your app. |
| WL.api |
Enables you to make calls to the Live Connect REST API. |
| WL.backgroundDownload (Windows 8) |
Makes a call to download a file from Microsoft SkyDrive. |
| WL.backgroundUpload (Windows 8) |
Makes a call to upload a file to SkyDrive. |
| WL.canLogout |
Specifies whether the current user can be signed out of his or her Microsoft account. |
| WL.download (web) |
Makes a call to download a file from SkyDrive. |
| WL.Event.subscribe |
Subscribes to an event. |
| WL.Event.unsubscribe |
Unsubscribes from an event. |
| WL.fileDialog (web) |
Displays the SkyDrive file picker, which enables JavaScript-based web apps to display a pre-built, consistent user interface that enables a user to select files to upload and download to and from his or her SkyDrive storage location. |
| 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 display UI elements, such as the Live Connect sign-in button and the SkyDrive file picker, in your app. |
| WL.upload (web) |
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. |
Build date: 3/12/2013