Microsoft adds code samples to GitHub
Written by Alex Denham   
Monday, 15 August 2011

In something of a surprise move, Microsoft has created a code sample repository on GitHub for for integrating Windows data into a variety of applications.

 

According to Dare Obasanjo. Lead Program Manager for the Messenger Connect Platform writing on the WindowsLive blog the samples have been posted is response to developer requests for code samples on popular smartphone platforms such as iOS as well as for Microsoft technologies like C# and ASP.NET. The code samples show how to integrate data from SkyDrive, Messenger, and Hotmail into a variety of application types.

The samples fall into three broad categories:

  • mobile client samples that show how to integrate user data into applications written in Silverlight and Objective C targeting the Windows Phone and iOS platforms
  • desktop code samples showing how to integrate user data into applications written in C#
  • and server-side code samples that show how to access user data using server-to-server calls when the user has given the application long-lived access to their data.

The desktop code sample, according to the blog post, follows a similar pattern to that used in a mobile application, of having an application hosting an embedded browser that redirects the user to http://oauth.live.com/desktop. The difference is that mobile applications specify a display parameter with the value set to “touch,” which indicates a touch screen-optimized experience, whereas desktop applications do not.

The server–side code samples have been added because a lot of developers contacted the group wanting to see complete code samples showing how an application that is actually making server-to-server calls to access a user’s Windows Live data should work. There are samples in ASP.NET and PHP showing how to use Microsoft’s JavaScript SDK to create a sign-in or connect button that takes the user through the process of giving consent to the application accessing their data when clicked.

 

If you would like to be informed about new articles on I Programmer you can either follow us on Twitter or Facebook or you can subscribe to our weekly newsletter.

 

Banner


Extend NGINX With The New JavaScript Module
28/10/2024

Inject middleware functionality into NGINX with the expressive power of Javascript. NGINX JavaScript or NJS for short is a dynamic module under which you can use scripting for hooking into the NGINX e [ ... ]



Go At Highest Rank Ever in TIOBE Index
20/11/2024

Go is currently in 7th place in the TIOBE Index for November 2024. Not only is this is the highest position it has ever had, it's percentage rating is almost equal to its all-time-high. Will Go contin [ ... ]


More News

Last Updated ( Monday, 15 August 2011 )