Awin API – www.awinapi.com

Firstly, this website is not Affiliate Window, it is partnered with Affiliate Window as an affiliate, but is in no way, shape or form representative of Affiliate Window.

It exists to provide you with code samples, discussion and assistance in using the Affiliate Window Shopwindow or Productserve API.

Ranging from how to make that call, to complete code to build an API powered website in no time at all.

You will need the core files for all code examples found on this site – Find them Here

The API Core Files

You will need to download these files in order to run any code found on this site, without these files, the code WILL NOT WORK.

These files are essentially the same files that come from awin, ie. the classes and the SOAP files. You will need to edit the constants.inc.php file to use your Affiliate ID and API Password.

define('API_USERNAME', 'ID_HERE');        // Your affiliate ID (e.g: 12345)
define('API_PASSWORD', 'PASSWORD_HERE');  // Your API password V2 Hash (found in your user area)

For the V3 Version, you will need to add your API key on this line define(‘API_KEY’, ‘YOUR_API_KEY_HERE’); in the constants.inc.php file (this is your ProductServe API (ShopWindow Client) Password V3 MD5 Hash found in your password area in the Awin affiliate area)
Read more

Updated to V3 – The Slider Carousel

Updated to V3 – The Slider Carousel:

Don’t forget you’ll need the V3 core files found on this page Core Files

An example of this code is here Fashion Forever Slide Carousel
Read more

Updated V3 – To get a list of merchants in a particular category

Updated to V3 – To retrieve a list of merchants in a perticular category, the code is as follows:
Read more

Updated V3 example to retrieve a single product

Updated to V3 – To retrieve a single product based on Awins product ID, the code is as follows:
Read more

A free sidebar widget based on the Affiliate Window V3 API

I’ve just written a sidebar widget that sits in your WP sidebar and displays 5 products based on a custom field called ‘sidebarquery’

You can see it in action at the bottom right of this page (ignore the sony walkman widget, as thats not Awin, thats POR), the custom field has the keywords ‘ipod nano’ in it, and as you will see, it does what you’d expect of it.

Read more

A Single Merchant with voucher codes if applicable

I’ve posted this in the shopwindow forum as well, but here it is again.
Read more

New Awin API V3 the core files and a fresh approach

After spending the past few weeks getting to grips with the new API (V3) I’ve found its better, quicker, more usable than V2
Read more

The First Example Get a List of Merchants

The first thing I’ll do is outline the code to get a list of merchants for any given category.

Read more

Showing Products Based on Category ID

This code will show how to retrieve products based on AFiiliate Window Category ID a list of which can be found here

Once again there is the code whaich is required for every call
Read more

Next Page »