amnon amnon

Niner since 2012


  • The complete developer's guide to the SkyDrive API

    For the initial stage (up to 16:51), here's what you need to do to make the app work as intended.

    If you look at the documentation you will realize there is no scope property for WL.ui() ( However, that property is available for WL.init() (

    Therefore, the change that will make the right oAuth UI to come up and ask the user to authorize the app to make changes to SkyDrive is to remove the scope from the WL.ui() call and add it to the WL.init() call, as follows:

        scope: "wl.signin wl.skydrive_update",

    Running the application before this change will authorize the app to sign-in to your Microsoft account but not to access your SkyDrive. After this change the Connect button will prompt authorization to access and modify SkyDrive, and getting the count by pressing the Get Count button will work as expected.