Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
Best Buy Remix C# library available

Omar is on fire. Just a few days after publishing his Guide to creating a Google App Engine / Remix API / Facebook app, he’s released Remix.NET, a C# wrapper for the Best Buy Remix API.

Code sample:

Using Remix;

Product p = null;
try
{
    Server remix = new Server("username", "password");
    String filter = "iphone";
    String postalcode = "94102";
    String radius = "25";
    bool tersemode = true;
    int pagenum = 0;

    // Get all Hardgoods that match "iphone" in the name attribute and
    // are in stores in the 94102 area code in a 25 mile radius.
    // When "tersemode" is true, only return a handful of information.
    // (See method signature for details.)
    Products list = remix.GetHardGoods(filter, tersemode, pagenum, postalcode, radius);

    if (list.Count > 0) p = list[0];
}
catch (Exception e)
{
}
return p;

Comments
  1. Adam Milligan says:

    That catch block that absorbs all exception is, I assume, an example of what *not* to do.

  2. Steve Conover says:

    I dunno. Who needs exceptions anyway?

  3. Adam Milligan says:

    Programmers who want well thought out error models? And ogres and fairies and other mythical creatures, of course.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *