Mashing Up Data On the Web and Windows Phone with Windows Azure DataMarket

Sign in to queue

Description

Windows Azure DataMarket provides data sets from public and commercial data sources, spanning weather, sports, social media, financial and retail. With consistent data formats and licensing, and delivered via open protocols, DataMarket provides developers the ability to create innovative new applications for the web and devices. We’ll use .NET and Visual Studio to acquire DataMarket data in real time to build applications with ASP.NET and Windows Phone that recompose existing DataMarket feeds into new and existing applications, or mashing it up with your application’s information to create new data-driven user experiences to make them more interesting, more insightful, and more fun.

For more information, check out this course on Microsoft Virtual Academy:

Day:

3

Level:

200

Code:

SVC08

Embed

Download

Download this episode

For more information, check out this course on Microsoft Virtual Academy:

The Discussion

  • User profile image
    Pawel

    Great seasion.
    How to access Azure DataMarket Data from windows phone 7 without Container.Credetials property?
    Regards
    Pawel

  • User profile image
    Max

    Thanks!
    Add the key as header to the request. For example:
    --------------
    PropertyDetailsApiContainer cont = new PropertyDetailsApiContainer(new Uri("https://api.datamarket.azure.com/Data.ashx/Alteryx/ConsumerExpenditureData/"));
    cont.SendingRequest += new EventHandler<SendingRequestEventArgs>((e, v) =>
    {
    Utility.AddUserKeyAsHeader(v.RequestHeaders, false);
    });
    ....
    Byte[] authbytes = UTF8Encoding.UTF8.GetBytes("key:<TBD:insert your account key>");
    headers["Authorization"] = "Basic " + Convert.ToBase64String(authbytes);
    ...
    --------------

    Thanks,
    Max

Add Your 2 Cents