+ Reply to Thread
Results 1 to 11 of 11

 

Thread: After Example ShopWindow API Script

  1. #1
    accelerator's Avatar
    Online shopping rocks!

    Status
    Offline
    Join Date
    Nov 2004
    Location
    England
    Posts
    3,008
    Thanks
    54
    Thanked 180 Times in 161 Posts


    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. #2
    scriptmonkey's Avatar
    Oranges & Lemons

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Worthing
    Posts
    1,578
    Thanks
    108
    Thanked 250 Times in 190 Posts
    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.
    Time passes. Listen. Time passes. Dylan Thomas
    CIAO Super SIC

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

    accelerator (27-06-09)

  4. #3
    accelerator's Avatar
    Online shopping rocks!

    Status
    Offline
    Join Date
    Nov 2004
    Location
    England
    Posts
    3,008
    Thanks
    54
    Thanked 180 Times in 161 Posts
    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. #4
    scriptmonkey's Avatar
    Oranges & Lemons

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Worthing
    Posts
    1,578
    Thanks
    108
    Thanked 250 Times in 190 Posts
    Have PM'd you as the script is way too complex to put in a forum post :tup
    Time passes. Listen. Time passes. Dylan Thomas
    CIAO Super SIC

  6. #5
    scriptmonkey's Avatar
    Oranges & Lemons

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Worthing
    Posts
    1,578
    Thanks
    108
    Thanked 250 Times in 190 Posts
    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.
    Time passes. Listen. Time passes. Dylan Thomas
    CIAO Super SIC

  7. #6
    scriptmonkey's Avatar
    Oranges & Lemons

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Worthing
    Posts
    1,578
    Thanks
    108
    Thanked 250 Times in 190 Posts
    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.
    Time passes. Listen. Time passes. Dylan Thomas
    CIAO Super SIC

  8. #7
    scriptmonkey's Avatar
    Oranges & Lemons

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Worthing
    Posts
    1,578
    Thanks
    108
    Thanked 250 Times in 190 Posts
    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
    Time passes. Listen. Time passes. Dylan Thomas
    CIAO Super SIC

  9. #8
    accelerator's Avatar
    Online shopping rocks!

    Status
    Offline
    Join Date
    Nov 2004
    Location
    England
    Posts
    3,008
    Thanks
    54
    Thanked 180 Times in 161 Posts
    Interesting. Had a quick look at these and found they worked in Firefox 3 but not IE7. Thanks for sharing though.

    Rgds

  10. #9
    scriptmonkey's Avatar
    Oranges & Lemons

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Worthing
    Posts
    1,578
    Thanks
    108
    Thanked 250 Times in 190 Posts
    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.
    Time passes. Listen. Time passes. Dylan Thomas
    CIAO Super SIC

  11. #10
    Registered User

    Status
    Offline
    Join Date
    Jan 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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. #11
    scriptmonkey's Avatar
    Oranges & Lemons

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Worthing
    Posts
    1,578
    Thanks
    108
    Thanked 250 Times in 190 Posts
    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.
    Time passes. Listen. Time passes. Dylan Thomas
    CIAO Super SIC

+ Reply to Thread


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ShopWindow and Red Letter Days launch BETA ShopWindow video players
    By Joshna in forum Affiliate Window & buy.at
    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, 04:19 PM
  3. Help with ShopWindow...
    By draytop in forum Affiliate Window & buy.at
    Replies: 0
    Last Post: 17-11-04, 01:47 PM
  4. Help with shopwindow please
    By Melter in forum Affiliate Window & buy.at
    Replies: 1
    Last Post: 02-02-04, 07:31 PM
  5. Shopwindow Help!!
    By mooash in forum Affiliate Window & buy.at
    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
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2