This project is read-only.

API Keys

All of the New York Times require API keys that must be obtained from the Times Developer Network. Once the keys are generated they can be put into the ApiKey property of the CLR objects (see NYTimes.Articles for an example) or into the Application Resources XAML for the Silverlight application:
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="DemoNYTimes.App"
             xmlns:nytvc="clr-namespace:NYTimes.ValueConverters;assembly=NYTimesSilverlightKit"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             >
    <Application.Resources>
        <sys:String x:Key="NYTBestSellersKey">REPLACE_WITH_YOUR_API_KEY</sys:String>
        <sys:String x:Key="NYTArticlesKey">REPLACE_WITH_YOUR_API_KEY</sys:String>
        <sys:String x:Key="NYTTagsKey">REPLACE_WITH_YOUR_API_KEY</sys:String>
        <sys:String x:Key="NYTMovieReviewsKey">REPLACE_WITH_YOUR_API_KEY</sys:String>
        <sys:String x:Key="NYTNewswireKey">REPLACE_WITH_YOUR_API_KEY</sys:String>
        <sys:String x:Key="NYTCommunityKey">REPLACE_WITH_YOUR_API_KEY</sys:String>
    </Application.Resources>
</Application>

Last edited May 8, 2009 at 7:11 PM by mscherotter, version 1

Comments

No comments yet.