Pappmaskin.no

Working with the QXL.no api to show the latest bid on an auction

http://nrkp3.no/wp-content/uploads/2008/10/nrk-mp3-572x321.jpg

My sexy colleagues in NRK Mp3 are selling themselves on the auctionsite qxl.no for a good cause (Blå Kors), and I wanted to cook up a fast way to display the latest bid on the NRK Mp3 website.

Here is the result so far:

Flashmovie

Not very fancy to say the least! But it does what it needs to: Fetch the latest bid on a particular auction.

Because I have to display it on bort nrk.no/mp3 and nrkp3.no (an externally hosted site), I decided to go for Flash, and using the new and lovely XML functionality of AS3.

It is in use on http://nrkp3.no/programledere-til-salgs/ and the frontpage of http://nrk.no/mp3 until the 19th of october at least.

Todo:
Make the code more reusable, everything is basically hardcoded.
Update: The php is now dynamic, send AuctionNr as a parameter to retrieve the auction you want like this: http://pappmaskin.no/opensource/qxl/qxlproxy.php?AuctionNr=549364732 . Next: Send in AuctionNr using the embed code.

Downloads:
QXL.zip.

The zip contains:

  • qxl.fla (as3, made with flash cs3, very easy to understand what to change).
  • qxlproxy.php (used to get around crossdomain-issues in flash)

Old QXL webservice documentation:
http://hjelp.qxl.no/avansert:xml_api

QXL Old api:
http://www.qxl.no/accdb/viewItemXML.asp?IDI=549689208

QXL New api, received by mail after contacting QXL:
http://www.qxl.no/accdb/viewitemxml.asp?AuctionNr=549689208&Catg=11395&ListingType=0&ListingSort=1&LanguageNr=0&PageNum=1

Resources:
Good as3 xml tutorial on Gotoandlearn.com

More about this years charity event
http://nrk.no/tvaksjonen/

Similar Posts:

Bookmark and Share

Written by Morten Skogly

October 13th, 2008 at 12:54 pm

Posted in Code

Tagged with , , ,

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply