Archive for the ‘QXL’ tag
Working with the QXL.no api to show the latest bid on an auction

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:
[kml_flashembed movie="http://pappmaskin.no/opensource/qxl/qxl.swf?AuctionNr=549364732" width="236" height="50" allowfullscreen="true" allowscriptaccess="always" /]
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/


