Retrieving Basic User Information

There is a wealth of user information that you can retrieve from Live Connect including the user’s name, birthday, email addresses, and list of friends. In this section, I demonstrate how you can retrieve this information by taking advantage of the WL.api() method.

The WL.api() method enables you to interact with the Live Connect REST API. When you call the WL.api() method, you can supply the following four options:

Image path—A path to a REST object

Image method—An HTTP method such as GET, POST, MOVE, COPY

body—The body ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.