Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
The complete developer's guide to the SkyDrive API
Aug 28, 2012 at 11:17 AMFor 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() (http://msdn.microsoft.com/en-us/library/live/hh550847.aspx). However, that property is available for WL.init() (http://msdn.microsoft.com/en-us/library/live/hh550844.aspx).
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:
WL.init({ 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.