Class: Services_AmazonECS4
Source Location: /Services_Amazon-0.5.0/AmazonECS4.php
Class for accessing and retrieving information from Amazon's Web Services
Author(s):
Version:
- Release: @package_version@
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Method Detail
Services_AmazonECS4 (Constructor) [line 188]
Services_AmazonECS4 Services_AmazonECS4(
string
$keyid, [string
$associd = null])
|
|
Constructor
Parameters:
BrowseNodeLookup [line 426]
array BrowseNodeLookup(
string
$browsenode_id, [array
$options = array()])
|
|
Retrieves information about a browse node Example: <?php
?>
Parameters:
CartAdd [line 457]
array CartAdd(
string
$cart_id, string
$hmac, array
$item, [array
$options = array()])
|
|
Adds items to an existing remote shopping cart Example: <?php
$item = array('ASIN' => 'aaaaaaaaaa', 'Quantity' => 1);
// $item = array(array('ASIN' => 'aaaaaaaaaa', 'Quantity' => 1),
// array('OfferListingId' => 'bbbbbbbbbb', 'Quantity' => 10),
// array('ASIN' => 'cccccccccc', 'Quantity' => 20));
$result = $amazon->CartAdd('[Cart ID]', '[HMAC]', $item);
?>
Parameters:
CartClear [line 477]
array CartClear(
string
$cart_id, string
$hmac, [array
$options = array()])
|
|
Removes all the contents of a remote shopping cart
Parameters:
CartCreate [line 506]
array CartCreate(
array
$item, [array
$options = array()])
|
|
Creates a new remote shopping cart Example: <?php
$item = array('ASIN' => 'aaaaaaaaaa', 'Quantity' => 1);
// $item = array(array('ASIN' => 'aaaaaaaaaa', 'Quantity' => 1),
// array('ASIN' => 'cccccccccc', 'Quantity' => 20));
?>
Parameters:
CartGet [line 524]
array CartGet(
string
$cart_id, string
$hmac, [array
$options = array()])
|
|
Retrieves the contents of a remote shopping cart
Parameters:
CartModify [line 556]
array CartModify(
string
$cart_id, string
$hmac, array
$item, [array
$options = array()])
|
|
Modifies the quantity of items in a cart and changes cart items to saved items Example: <?php
$item = array('CartItemId' => 'aaaaaaaaaa', 'Quantity' => 1);
// $item = array('CartItemId' => 'aaaaaaaaaa', 'Action' => 'SaveForLater');
// $item = array(array('CartItemId' => 'aaaaaaaaaa', 'Quantity' => 1),
// array('CartItemId' => 'cccccccccc', 'Quantity' => 20));
$result = $amazon->CartModify('[Cart ID]', '[HMAC]', $item);
?>
Parameters:
CustomerContentLookup [line 575]
array CustomerContentLookup(
string
$customer_id, [array
$options = array()])
|
|
Retrieves publicly available content written by specific Amazon customers
Parameters:
CustomerContentSearch [line 592]
array CustomerContentSearch(
[array
$customer = null], [array
$options = array()])
|
|
Searches for Amazon customers by name or email address
Parameters:
doBatch [line 844]
array doBatch(
string
$operation, array
$shared, [array
$params1 = array()], [array
$params2 = array()])
|
|
Combines requests for the same operation into a single request Example: <?php
$shared = array('SearchIndex' => 'Books',
'Keywords' => 'php');
$params1 = array('ItemPage' => '1');
$params2 = array('ItemPage' => '2');
$result = $amazon->doBatch('ItemSearch', $shared, $params1, $params2);
?>
Parameters:
doMultiOperation [line 882]
array doMultiOperation(
string
$operation1, array
$params1, string
$operation2, array
$params2)
|
|
Combines the different operations into a single request Example: <?php
$params1 = array('SearchIndex' => 'Books',
'Title' => 'sushi');
$params2 = array('Keywords' => 'tempura');
'SellerListingSearch', $params2);
?>
Parameters:
getApiVersion [line 201]
Retrieves the current version of this classes API
getError [line 383]
Retrieves the error code and message if (PEAR::isError($result)) {
echo $error['Code'];
echo $error['Message'];
}
getErrors [line 364]
Retrieves all error codes and messages if (PEAR::isError($result)) {
echo $error['Code'];
echo $error['Message'];
}
}
getLastUrl [line 405]
Retrieves the last URL accessed to the Amazon (for debugging)
getProcessingTime [line 394]
string getProcessingTime(
)
|
|
Retrieves the processing time
Help [line 617]
array Help(
string
$help_type, string
$about, [array
$options = array()])
|
|
Retrieves information about operations and response groups Example: <?php
$result = $amazon->Help('Operation', 'ItemLookup');
?>
Parameters:
ItemLookup [line 645]
array ItemLookup(
string
$item_id, [array
$options = array()])
|
|
Retrieves information for products Example: <?php
$options = array();
$options['ResponseGroup'] = 'Large';
$result = $amazon->ItemLookup('[ASIN(s)]', $options);
?>
Parameters:
ItemSearch [line 674]
array ItemSearch(
string
$search_index, [array
$options = array()])
|
|
Searches for products Example: <?php
$options = array();
$options['Keywords'] = 'sushi';
$options['Sort'] = 'salesrank';
$options['ResponseGroup'] = 'ItemIds,ItemAttributes,Images';
?>
Parameters:
ListLookup [line 692]
array ListLookup(
string
$list_type, string
$list_id, [array
$options = array()])
|
|
Retrieves products in a specific list
Parameters:
ListSearch [line 720]
array ListSearch(
string
$list_type, array
$keywords, [array
$options = array()])
|
|
Searches for a wish list, baby registry, or wedding registry Example: <?php
$keywords = array('Name' => 'hoge');
$result = $amazon->ListSearch('WishList', $keywords);
?>
Parameters:
SellerListingLookup [line 739]
array SellerListingLookup(
string
$id_type, string
$id, [array
$options = array()])
|
|
Retrieves information about Amazon zShops and Marketplace products
Parameters:
SellerListingSearch [line 766]
array SellerListingSearch(
string
$search_index, [array
$options = array()])
|
|
Searches for Amazon zShops and Marketplace products Example: <?php
$keywords = array('Keywords' => 'pizza');
?>
Parameters:
SellerLookup [line 782]
array SellerLookup(
string
$seller_id, [array
$options = array()])
|
|
Retrieves information about specific sellers
Parameters:
setAccessKeyID [line 213]
void setAccessKeyID(
$keyid, string
$subid)
|
|
Sets an Access Key ID
Parameters:
setAssociateID [line 237]
void setAssociateID(
string
$associd)
|
|
Sets an Associate ID
Parameters:
setBaseUrl [line 249]
void setBaseUrl(
string
$url)
|
|
Sets the base URL
Parameters:
setCache [line 313]
mixed setCache(
[string
$container = 'file'], [array
$container_options = array()])
|
|
Enables caching the data Requires Cache to be installed. Example: <?php
$amazon->setCache('file', array ('cache_dir' => 'cache/'));
?>
Parameters:
setCacheExpire [line 344]
void setCacheExpire(
integer
$secs)
|
|
Sets cache expire time Amazon dictates that any prices that are displayed that may be over an hour old should be accompanied by some sort of timestamp. You can get around that by expiring any queries that use the time in an hour (3600 seconds).
Parameters:
setLocale [line 263]
mixed setLocale(
string
$locale)
|
|
Sets the locale passed when making a query to Amazon Currently US, UK, DE, JP, FR, and CA are supported
Parameters:
setSubscriptionID [line 225]
void setSubscriptionID(
string
$subid)
|
|
Sets a Subscription ID (for backward compatibility)
Parameters:
setVersion [line 288]
void setVersion(
string
$version)
|
|
Sets a version
Parameters:
SimilarityLookup [line 798]
array SimilarityLookup(
string
$item_id, [array
$options = array()])
|
|
Retrieves products that are similar to Amazon products
Parameters:
TransactionLookup [line 814]
array TransactionLookup(
string
$transaction_id, [array
$options = array()])
|
|
Retrieves information about the status of financial transactions
Parameters:
Documentation generated on Mon, 11 Mar 2019 14:40:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|