Compartilhar via


Code Sample: Authenticating and Consuming Data from Netflix (Web 2.0 Application)

Applies to: SharePoint Server 2010

This Microsoft Business Connectivity Services (BCS) sample application demonstrates that by using the Business Connectivity Services extensibility mechanism, you can plug in code to authenticate against a Web 2.0 application. This sample particularly demonstrates authenticating and consuming Netflix data.

You can easily use the same design to enable similar scenarios against other such applications that implement either the full OAuth protocol or a custom flavor of it, for example, LiveID.

Disclaimer: This sample is intended to help inform you about best practices for creating applications within Microsoft SharePoint Server 2010 that take advantage of the Netflix API. You should familiarize yourself with the Netflix platform documentation and what you, as a developer, are permitted to do when interfacing with that platform.

Prerequisites:

  • Internet Information Services (IIS)

  • Microsoft .NET Framework 3.5 Service Pack 1

  • Microsoft SharePoint Server 2010

  • A 1-m SharePoint server farm configuration (recommended)

  • Microsoft Visual Studio 2010 installed on the same computer as SharePoint Server 2010

  • A Netflix developer account

  • A working Business Connectivity Services and Secure Store Service

Download and use the sample

  1. Download and install the Microsoft SharePoint 2010 Software Development Kit (SDK) from SharePoint 2010 Reference: Software Development Kit.

  2. Extract bcs sample kit.zip from the path %ProgramFiles%\Microsoft SDKs\SharePoint 2010\Samples\Business Connectivity Services to a local folder.

  3. In the folder where you extracted the files, locate the Authenticating and Consuming Data from Netflix (Web 2.0 Application) folder and open the Readme.htm file.

  4. Follow the instructions in Readme.htm to use the sample.