
Linking to the Windows Live Data Permission System
You only need to ask the user for permission once. If the user accepts your permission request, Windows Live Data will provide you with the credentials needed to request access to the user's data.
To ask the user for permission, you will want to add a special 'permission request' link to your Web site page. When the user clicks on the link, Windows Live Data will ask the user to approve or reject your permission request.
The permission link for the alpha release of Windows Live Data will typically be in this form.
<a href="https://ux.cumulus.services.live.com/pgux/default.aspx?rl=[return URL]&pl=[privacy URL]&ps=[permission string]">Grant Permission</a>
Here, the return URL (rl) parameter is the address of the Web page on your site that will process the response; the privacy URL (pl) parameter is the address of a Web page that displays your site's privacy policy; and the permission string (ps) parameter describes the permissions being requested.
So, for example: if your site is www.sample.com; your privacy policy page is privacy.html; your permission processing script is permit.aspx, and you want permission to read the user's Windows Live Contacts information; then you would set your permission link to the following.
<a href="https://ux.cumulus.services.live.com/pgux/default.aspx?rl=https://www.sample.com/permit.aspx&pl=https://www.sample.com/privacy.html&ps=LiveContacts.ReadOnly">Grant Permission</a>
For Windows Live Contacts, the available permissions you can request are:
- LiveContacts.ReadOnly: Read the user's list of contacts and all contact information
- LiveContact.ReadWrite: Read, add, update, and delete the user's list of contacts and all contact information
If you don't have an SSL certificate for your site and are only testing, then use HTTP rather than HTTPS for your return and privacy URLs, and append the option &NoSSL to your link.
<a href="https://ux.cumulus.services.live.com/pgux/default.aspx?rl=http://www.sample.com/permit.aspx&pl=http://www.sample.com/privacy.html&ps=LiveContacts.ReadOnly&NoSSL">Grant Permission</a>
Note: |
|---|
|
The NoSSL option is meant for testing purposes only and should not be used for a live application. If you don't use SSL, Windows Live Data will display a scary warning to the user and advise him or her to reject your request. To bypass the scary warning screen click on the grant permission link on the bottom of the web page.
|