+ Reply to Thread
Results 1 to 11 of 11
  1. Join Date
    Nov 2004
    Location
    England
    Posts
    2,291
    Thanks
    40
    Thanked 138 Times in 122 Posts

    After Example ShopWindow API Script

    Hi All

    I'm after a simple example of an Awin ShopWindow API script which I can upload to my server, just to understand the basics of getting data via the API. Can anyone help out an API newbie with an example script?

    Thanks

  2. Join Date
    Jan 2009
    Location
    Worthing
    Posts
    715
    Thanks
    33
    Thanked 104 Times in 70 Posts

    Re: After Example ShopWindow API Script

    If you can bear with me for a day or two, I've just registered a new domain and I will be putting examples of all the available Awin API calls and how to integrate them into a standalone php website.

    If you can't wait, then I can give you specific examples for specific requirements.
    If you build it, they will come. Then what? UK Press Releases Find Shopping Codes Ambeku Fashion Forever

  3. The Following User Says Thank You to scriptmonkey For This Useful Post:

    accelerator (27-06-09)

  4. Join Date
    Nov 2004
    Location
    England
    Posts
    2,291
    Thanks
    40
    Thanked 138 Times in 122 Posts

    Re: After Example ShopWindow API Script

    If you have time, then it would be good if you could post a very basic example script here. I just want to manage to write my own script that can utilise the Awin API, however basic.

    Many thanks

  5. Join Date
    Jan 2009
    Location
    Worthing
    Posts
    715
    Thanks
    33
    Thanked 104 Times in 70 Posts

    Re: After Example ShopWindow API Script

    Have PM'd you as the script is way too complex to put in a forum post

  6. Join Date
    Jan 2009
    Location
    Worthing
    Posts
    715
    Thanks
    33
    Thanked 104 Times in 70 Posts

    Re: After Example ShopWindow API Script

    Quick amendment for you, in index.php

    swap

    PHP Code:
    foreach($oResponse->oRefineByGroup as $details){
    $sName1 $details->sName;
    $iId1 $details->iId;
    if (
    $sName1<>''){
    echo 
    "<div  class=\"centralproducts2\"/><b>".$sName1."</b><br/>";
            foreach(
    $details->oRefineByDefinition as $details2){
            echo 
    "<br/>";
    $sName $details2->sName;
    $sId $details2->sId;
    echo 
    $sName."&nbsp;";
    }
    echo 
    "</div>"; }

    for

    PHP Code:
    foreach($oResponse->oRefineByGroup as $details){
        
    $sName1 $details->sName;
        
    $iId1 $details->iId;
            if (
    $sName1<>''){
                echo 
    "<div  class=\"centralproducts2\"/><b>".$sName1."</b><br/>";
                    foreach(
    $details->oRefineByDefinition as $details2){
                        echo 
    "<br/>";
                    
    $sName $details2->sName;
                    
    $sId $details2->sId;
                        if (
    $sName1=='Category') {
                            echo 
    $sName."&nbsp;<a href=index.php?id=".$sId.">more</a>";
                        }
                        else
                            echo 
    $sName."&nbsp;";
                        }
            }
                echo 
    "</div>"

    Which will give you a link after the categories at the bottom of the page.

  7. Join Date
    Jan 2009
    Location
    Worthing
    Posts
    715
    Thanks
    33
    Thanked 104 Times in 70 Posts

    Re: After Example ShopWindow API Script

    As promised, the new site is live, www.awinapi.com

    One code example on there at the moment, there will be another within the hour, and one more before the evening.

    Hopefully it will grow into a valuable resource for anyone using Affiliate Windows productserve API.

  8. Join Date
    Jan 2009
    Location
    Worthing
    Posts
    715
    Thanks
    33
    Thanked 104 Times in 70 Posts

    Re: After Example ShopWindow API Script

    Been playing around with noobslide and mootools this afternoon, and created a little something that uses the Awin API

    Example 1 Carousel & API Test

    Example 2 Carousel & API Test

    Source code for both of those here A Javascript Carousel with the API : Awin API Help & Code well, it's the same source code, just a different category
    If you build it, they will come. Then what? UK Press Releases Find Shopping Codes Ambeku Fashion Forever

  9. Join Date
    Nov 2004
    Location
    England
    Posts
    2,291
    Thanks
    40
    Thanked 138 Times in 122 Posts

    Re: After Example ShopWindow API Script

    Interesting. Had a quick look at these and found they worked in Firefox 3 but not IE7. Thanks for sharing though.

    Rgds

  10. Join Date
    Jan 2009
    Location
    Worthing
    Posts
    715
    Thanks
    33
    Thanked 104 Times in 70 Posts

    Re: After Example ShopWindow API Script

    Thanks for that, haven't touched IE since about 2002, I suppose I should try and see what things look like in the majority browser.

  11. Join Date
    Jan 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: After Example ShopWindow API Script

    Hi scriptmonkey,

    Thanks a lot for your script. I was looking for a AW api script but can't find any. Your script is a great starting point.

    I just checked out your Showing Products based on a Keyword Query example script, I got a question, does your script show joined merchant or even those merchant that I haven't join?

    I think I will ask some body to modify your script, so that I can save the data in xml format. Then I don't nedd to download the big xml files from merchants again and again. Thanks.

  12. Join Date
    Jan 2009
    Location
    Worthing
    Posts
    715
    Thanks
    33
    Thanked 104 Times in 70 Posts

    Re: After Example ShopWindow API Script

    Quote Originally Posted by maxbear View Post
    I think I will ask some body to modify your script, so that I can save the data in xml format. Then I don't nedd to download the big xml files from merchants again and again. Thanks.
    Hi maxbear, the thing is, this is a live webservice API, you don't need to download anything, you only get the products that you ask for in the query, so saving the results as xml is kind of defeating the purpose of the whole thing.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 8
    Last Post: 05-11-08, 10:38 AM
  2. Best & easiest blog script and forums script to use on a website.
    By Brad123 in forum Affiliate Marketing Lounge
    Replies: 3
    Last Post: 13-07-07, 03:19 PM
  3. Help with ShopWindow...
    By draytop in forum Affiliate Window
    Replies: 0
    Last Post: 17-11-04, 01:47 PM
  4. Help with shopwindow please
    By Melter in forum Affiliate Window
    Replies: 1
    Last Post: 02-02-04, 07:31 PM
  5. Shopwindow Help!!
    By mooash in forum Affiliate Window
    Replies: 6
    Last Post: 08-12-03, 05:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.5.0 RC1 PL1