Plugin Directory

Changeset 477095


Ignore:
Timestamp:
12/18/2011 12:43:47 PM (14 years ago)
Author:
akrat
Message:

Added param. AssociateTag for making latest API version working

Location:
lazyzoun/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lazyzoun/trunk/lazyzoun.php

    r359575 r477095  
    55  Description: Quickly add Amazon Products to the Sidebar
    66  Author: Benedikt Kofler
    7   Version: 0.4
     7  Version: 0.4.1
    88  Author URI: http://www.akrat.net/
    99  License: GPL 2.0, @see http://www.gnu.org/licenses/gpl-2.0.html
     
    4040        $public_key = get_option('lz_api_public_key');
    4141        $private_key = get_option('lz_api_private_key');
    42         $amazon_tld = get_option('lz_api_amazon_tld');
    43 
    44         return aws_signed_request($amazon_tld, $parameters, $public_key, $private_key);
     42        $associate_tag = get_option('amazon_partner_id');
     43
     44        return aws_signed_request($amazon_tld, $parameters, $public_key, $private_key, $associate_tag);
    4545    }
    4646
  • lazyzoun/trunk/lib/aws_signed_request.php

    r351609 r477095  
    3434
    3535
    36 function  aws_signed_request($region,$params,$public_key,$private_key)
     36function  aws_signed_request($region,$params,$public_key,$private_key,$associate_tag)
    3737{
    3838
     
    4646    $params["Timestamp"]        = gmdate("Y-m-d\TH:i:s\Z");
    4747    $params["Version"]          = "2009-03-31";
     48    $params["AssociateTag"]     = $associate_tag;
    4849
    4950    /* The params need to be sorted by the key, as Amazon does this at
  • lazyzoun/trunk/readme.txt

    r355775 r477095  
    44Tags: widget, plugin, sidebar, ad, amazon, affiliate, monetize,
    55Requires at least: 2.0.2
    6 Tested up to: 3.1
    7 Stable tag: 0.4
     6Tested up to: 3.3
     7Stable tag: 0.4.1
    88
    99
     
    4646== Changelog ==
    4747
     48= 0.4.1 - 18/12/2011 =
     49*  Added param. AssociateTag for making latest API version working
     50
    4851= 0.4 - 03/05/2011 =
    4952* SEO Friendly image-names and changed cache-folder
     
    5861== Upgrade Notice ==
    5962
     63= 0.4.1 =
     64Added param. AssociateTag for making latest API version working
     65
    6066= 0.4 =
    6167New SEO-friendly image-names, new call-to-action button and fixed problems with IE
Note: See TracChangeset for help on using the changeset viewer.